Plotting#

Utilities for visualizing criteria results.

Plot the graphs defined in a CriteriaResult using Matplotlib.

Parameters:
  • result (CriteriaResult) – The CriteriaResult object from a script execution.

  • show (bool) – If True, calls plt.show() after creating figures.

  • plot_id (str, optional) – If provided, only plots the graph with this specific ID.

  • save_to (str, optional) – Path to save the plot. If multiple plots are generated, the plot ID will be appended to the filename.

Returns:

List of created matplotlib Figure objects.

Return type:

list[matplotlib.figure.Figure]

Raises:

ImportError – If matplotlib is not installed.