plot_cdf_values#

mhm_tools.common.plotter.plot_cdf_values(ax, values: Sequence[float], label: str, color: str | None = None, linestyle='-', cdf_values: Sequence[float] | None = None, marker_size: int = 16, draw_line: bool = True, draw_points: bool = True)[source]#

Plot one CDF series on an existing axis.

Parameters:
  • ax (matplotlib.axes.Axes) – Axis to draw on.

  • values (Sequence[float]) – Numeric values for the CDF line.

  • label (str) – Legend label for the series.

  • color (str, optional) – Matplotlib color for line and points.

  • linestyle (object, optional) – Matplotlib linestyle for the CDF line.

  • cdf_values (Sequence[float], optional) – Precomputed CDF coordinates.

  • marker_size (int, optional) – Scatter marker size.

  • draw_line (bool, optional) – Draw the CDF line when true.

  • draw_points (bool, optional) – Draw CDF points when true.

Returns:

Plotted x values and CDF y values.

Return type:

tuple[np.ndarray, np.ndarray]