exa.core.plotting.plot_cumulative_distribution.plot_multi_cdf

Contents

exa.core.plotting.plot_cumulative_distribution.plot_multi_cdf#

plot_multi_cdf(observations, observation_types, color_scheme, split_dut_field=<function decode_dut_field>, save_path=None, resolution=300, xscale='linear', show_logit_mean=False, fig_size=(6.0, 4.0))#

Draw the cumulative distribution of the observations for the given types.

Multi-CDF - cumulative histogram plot with multiple lines.

Parameters:
  • observations (list[ObservationDefinition]) – The data to plot.

  • observation_types (list[str]) – One cumulative distribution for each type.

  • color_scheme (ListedColormap) – colormap for the various lines in the figure.

  • split_dut_field (Callable[[str], tuple[str, str]]) – How to extract component name and observation type from DUT field.

  • save_path (Path | None) – Where to save the figure.

  • resolution (int) – In dpi for saving the figure.

  • xscale (str) – Accepts the values for set_xscale in matplotlib. Default is linear. Only with linear x-axis will the units be scaled automatically.

  • show_logit_mean (bool) – If True, calculates the logit mean. If False, calculates the median as usual.

  • fig_size (tuple[float, float]) – Size of figure in inches

Returns:

The Matplotlib figure containing the plot.

Raises:

ValueError if no observation types are provided or units are mismatching. –

Return type:

Figure