plot#

SolutionData.plot(curves=None, formula=None, size=(1920, 1440), show_legend=True, x_label='', y_label='', title='', snapshot_path=None, is_polar=False, show=True)#

Create a matplotlib figure based on a list of data.

Parameters:
curveslist

Curves to be plotted. The default is None, in which case the first curve is plotted.

formulastr , optional

Mathematical formula to apply to the plot curve. The default is None, in which case only real value of the data stored in the solution data is plotted. Options are "abs", "db10", "db20", "im", "mag", "phasedeg", "phaserad", and "re".

sizetuple, optional

Image size in pixels (width, height).

show_legendbool

Whether to show the legend. The default is True. This parameter is ignored if the number of curves to plot is greater than 15.

x_labelstr

Plot X label.

y_labelstr

Plot Y label.

titlestr

Plot title label.

snapshot_pathstr

Full path to image file if a snapshot is needed.

is_polarbool, optional

Set to True if this is a polar plot.

showbool, optional

Whether if show the plot or not. Default is set to True.

Returns:
ansys.aedt.core.visualization.plot.matplotlib.ReportPlotter

Matplotlib class object.