plot_metric_cdf_comparison#
- mhm_tools.common.plotter.plot_metric_cdf_comparison(values_by_label: Mapping[str, Sequence[float]], variable_name: str, output_file: Path, title: str | None = None, x_limits: Sequence[float] | None = None, dpi: int = 450, colors: Mapping[str, str] | None = None, linestyles: Mapping[str, object] | None = None, show_median_line: bool = False) None[source]#
Create a comparison CDF plot for one metric variable.
- Parameters:
values_by_label (Mapping[str, Sequence[float]]) – Numeric metric values grouped by plot label.
variable_name (str) – Metric column name shown on the x-axis.
output_file (Path) – PNG file to write.
title (str, optional) – Plot title. Defaults to a CDF title for the variable.
x_limits (Sequence[float], optional) – Lower and upper x-axis limits.
dpi (int, optional) – Output image resolution.
colors (Mapping[str, str], optional) – Optional colors by label.
linestyles (Mapping[str, object], optional) – Optional line styles by label.
show_median_line (bool, optional) – Draw vertical median lines when true.
- Return type:
None