plot_metric_violin_comparison#
- mhm_tools.common.plotter.plot_metric_violin_comparison(values_by_label: Mapping[str, Sequence[float]], variable_name: str, output_file: Path, title: str | None = None, dpi: int = 450, colors: Mapping[str, str] | None = None) None[source]#
Create a violin 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 y-axis.
output_file (Path) – PNG file to write.
title (str, optional) – Plot title. Defaults to a violin title for the variable.
dpi (int, optional) – Output image resolution.
colors (Mapping[str, str], optional) – Optional colors by label.
- Return type:
None