plot_3d_chart#

FfdSolutionData.plot_3d_chart(quantity='RealizedGain', phi=0, theta=0, title='3D Plot', quantity_format='dB10', output_file=None, show=True)[source]#

Create a 3D chart of a specified quantity in Matplotlib.

Parameters:
quantitystr, optional

Far field quantity to plot. The default is "RealizedGain". Available quantities are: "RealizedGain", "RealizedGain_Phi", "RealizedGain_Theta", "rEPhi", "rETheta", and "rETotal".

phifloat, int, optional

Phi scan angle in degree. The default is 0.

thetafloat, int, optional

Theta scan angle in degree. The default is 0.

titlestr, optional

Plot title. The default is "3D Plot".

quantity_formatstr, optional

Conversion data function. Available functions are: "abs", "ang", "dB10", "dB20", "deg", "imag", "norm", and "real".

output_filestr, optional

Full path for the image file. The default is None, in which case a file is not exported.

showbool, optional

Whether to show the plot. The default is True. If False, the Matplotlib instance of the plot is not shown.

Returns:
matplotlib.pyplot.Figure

Matplotlib figure object. If show=True, a Matplotlib figure instance of the plot is returned. If show=False, the plotted curve is returned.

Examples

>>> from ansys.aedt.core
>>> app = ansys.aedt.core.Hfss(version="2023.2", design="Antenna")
>>> setup_name = "Setup1 : LastAdaptive"
>>> frequencies = [77e9]
>>> sphere = "3D"
>>> data = app.get_antenna_data(frequencies,setup_name,sphere)
>>> data.polar_plot_3d(theta=10)