nhra_gt.plotting¶
Functions¶
plot_strategy_heatmap(data, config=None, **kwargs)
¶
Shows strategy shares over time for each game (one panel per game).
Source code in src/nhra_gt/visualization/distributional.py
tornado_from_rankcorr(data, outcome_col, params, config=None, topk=10, path=None)
¶
Rank-correlation tornado using Spearman rho.
Source code in src/nhra_gt/visualization/sensitivity.py
plot_trajectory(data, y_col, ylabel, config=None, q_low_col=None, q_high_col=None, **kwargs)
¶
Plots a time-series trajectory with optional quantile ribbons.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
DataFrame
|
DataFrame containing 'year' and the target columns. |
required |
y_col
|
str
|
Column name for the primary metric. |
required |
ylabel
|
str
|
Label for the y-axis. |
required |
config
|
PlotConfig | None
|
PlotConfig object for styling. |
None
|
q_low_col
|
str | None
|
Optional column name for the lower quantile ribbon. |
None
|
q_high_col
|
str | None
|
Optional column name for the upper quantile ribbon. |
None
|
**kwargs
|
Any
|
Additional parameters passed to ax.plot. |
{}
|
Returns:
| Type | Description |
|---|---|
Figure
|
A matplotlib Figure object. |