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:
- curves
list Curves to be plotted. The default is
None, in which case the first curve is plotted.- formula
str,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".- size
tuple,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_label
str Plot X label.
- y_label
str Plot Y label.
- title
str Plot title label.
- snapshot_path
str 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.
- curves
- Returns:
ansys.aedt.core.visualization.plot.matplotlib.ReportPlotterMatplotlib class object.