percentile_curve_plot#
Plot scores ranked by percentile with optional normalization, reference lines, highlighting, and customizable font sizes.
π₯ Arguments#
Name |
Type |
Required |
Description |
|---|---|---|---|
scores |
Union[pd.Series, pd.DataFrame] |
β |
Scores as a pandas Series or single-column DataFrame. |
column |
str |
β |
Column name if |
normalize_scores |
bool |
β |
Normalize scores to [0,1]. Default: True. |
normalize_percentiles |
bool |
β |
Normalize percentiles to [0,1]. Default: True. |
horizontal_markers |
List[Tuple[float,str]] |
β |
List of (y_value, label) for horizontal lines. |
vertical_markers |
List[Tuple[float,str]] |
β |
List of (x_value, label) for vertical lines. |
highlight_top_n |
int |
β |
Number of top scores to shade. Default: None. |
highlight_color |
str |
β |
Color for highlight region. Default: β#c8e6c9β. |
highlight_label |
str |
β |
Text label in highlight. Default: None. |
highlight_label_color |
str |
β |
Color of highlight label text. Default: βgreenβ. |
highlight_label_font_size |
int |
β |
Font size for highlight label text. Default: fontsize. |
vertical_label_offset |
float |
β |
Offset above vertical marker. Default: 0.02. |
xlabel |
str |
β |
X-axis label. Default: βPercentileβ. |
ylabel |
str |
β |
Y-axis label. Default: βScoreβ. |
title |
str |
β |
Plot title. Default: None. |
font_family |
str |
β |
Font family. Default: βTimes New Romanβ. |
fontsize |
int |
β |
Base font size for ticks, labels, title, and marker text. Default: 14. |
figsize |
tuple |
β |
Figure size. Default: (8, 5). |
save |
str |
β |
Base filename to save PNG/PDF if provided. |
π¦ Example Output#
Click to show example code
# Example code for |percentile_curve_plot| not found.