plot_2d_chart#
- ansys.aedt.core.visualization.plot.matplotlib.plot_2d_chart(plot_data, size=(2000, 1000), show_legend=True, xlabel='', ylabel='', title='', snapshot_path=None, show=True)[source]#
Create a Matplotlib figure based on a list of data.
- Parameters:
- plot_data
list
of
list
List of plot data. Every item has to be in the following format [x points, y points, label].
- size
tuple
,optional
Image size in pixel (width, height). The default is (2000,1600).
- show_legendbool,
optional
Either to show legend or not. The default value is
True
.- xlabel
str
,optional
Plot X label. The default value is
""
.- ylabel
str
,optional
Plot Y label. The default value is
""
.- title
str
,optional
Plot Title label. The default value is
""
.- 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.
- plot_data
- Returns:
matplotlib.pyplot.Figure
Matplotlib figure object.