plot#

SolutionData.plot(curves=None, math_formula=None, size=(2000, 1000), show_legend=True, xlabel='', ylabel='', title='', snapshot_path=None, is_polar=False)[source]#

Create a matplotlib plot based on a list of data.

Parameters:
curveslist

Curves to be plotted. If None, the first curve will be plotted.

math_formulastr , optional

Mathematical formula to apply to the plot curve. Valid values are “re”, “im”, “db20”, “db10”, “abs”, “mag”, “phasedeg”, “phaserad”. None value will plot only real value of the data stored in solution data.

sizetuple, optional

Image size in pixel (width, height).

show_legendbool

Either to show legend or not. Flag will be ignored if number of curves to plot is greater than 15.

xlabelstr

Plot X label.

ylabelstr

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.

Returns:
matplotlib.plt

Matplotlib fig object.