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_datalist of list

List of plot data. Every item has to be in the following format [x points, y points, label].

sizetuple, 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.

xlabelstr, optional

Plot X label. The default value is "".

ylabelstr, optional

Plot Y label. The default value is "".

titlestr, optional

Plot Title label. The default value is "".

snapshot_pathstr, 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.

Returns:
matplotlib.pyplot.Figure

Matplotlib figure object.