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:
- curves
list
Curves to be plotted. If None, the first curve will be plotted.
- math_formula
str
,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.
- size
tuple
,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.
- xlabel
str
Plot X label.
- ylabel
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.
- curves
- Returns:
matplotlib.plt
Matplotlib fig object.