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:
- traces
int
,str
,list
,optional
Trace or traces to be plotted. It can be the trace name, the trace id or a list of those.
- snapshot_path
str
,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.
- figure
matplotlib.pyplot.Figure
,optional
An existing Matplotlib Figure to which the plot is added. If not provided, a new Figure and Axes object are created.
- traces
- Returns:
matplotlib.pyplot.Figure
Matplotlib figure object.