plot_2d#

ReportPlotter.plot_2d(traces=None, snapshot_path=None, show=True, figure=None)#

Create a Matplotlib figure based on a list of data.

Parameters:
tracesint, str, list, optional

Trace or traces to be plotted. It can be the trace name, the trace id or a list of those.

snapshot_pathstr, optional

Full path to image file if a snapshot is needed. The default value is None.

showbool, optional

Whether to show the plot or return the matplotlib object. Default is True.

figurematplotlib.pyplot.Figure, optional

An existing Matplotlib Figure to which the plot is added. If not provided, a new Figure and Axes object are created.

Returns:
matplotlib.pyplot.Figure

Matplotlib figure object.