multiple_std_lines_df#
Line plot with shaded confidence intervals and configurable label, color, and linestyle mappings, using a pandas DataFrame in long format.
π₯ Arguments#
Name |
Type |
Required |
Description |
|---|---|---|---|
data_df |
pd.DataFrame |
β |
Long-form DataFrame containing one row per point with columns for the run label, x values, y values, and standard error. |
label_key |
str |
β |
Column name in data_df that identifies each run/series. |
x_key |
str |
β |
Column name for x-axis values. Default: βround_numβ. |
y_key |
str |
β |
Column name for y-axis values. Default: βunique_scoresβ. |
yerr_key |
str |
β |
Column name for standard error. Default: βstd_errorβ. |
figsize |
tuple |
β |
Figure size. Default: (8, 5). |
legend_loc |
str |
β |
Legend location. Default: βupper leftβ. |
legend_title |
str |
β |
Legend title. Default: None. |
legend_ncol |
int |
β |
Number of columns in legend. Default: 1. |
label_map |
Dict[str, str] |
β |
Mapping of raw labels to display names. |
color_map |
Dict[str, str] |
β |
Mapping of raw labels to line colors. |
style_map |
Dict[str, str] |
β |
Mapping of raw labels to line styles. |
xlim |
Tuple[float, float] |
β |
X-axis limits. |
ylim |
Tuple[float, float] |
β |
Y-axis limits. |
xlabel |
str |
β |
X-axis label. |
ylabel |
str |
β |
Y-axis label. |
x_formatter |
Callable |
β |
Formatter for x-axis ticks. |
y_formatter |
Callable |
β |
Formatter for y-axis ticks. |
fontsize |
int |
β |
Base font size for axis labels, tick labels, legend, and CI shading labels. Default: 12. |
save |
str |
β |
Base filename to save PNG and PDF. |
π¦ Example Output#
Click to show example code
# Example code for |multiple_std_lines_df| not found.