polar_plot_3d#
- FfdSolutionData.polar_plot_3d(farfield_quantity='RealizedGain', phi_scan=0, theta_scan=0, title='3D Plot', quantity_format='dB10', export_image_path=None, show=True, **kwargs)[source]#
Create a 3D plot of a specified quantity.
- Parameters:
- farfield_quantity
str
,optional
Far field quantity to plot. The default is
"RealizedGain"
. Available quantities are:"RealizedGain"
,"RealizedGain_Phi"
,"RealizedGain_Theta"
,"rEPhi"
,"rETheta"
, and"rETotal"
.- phi_scan
float
,int
,optional
Phi scan angle in degree. The default is
0
.- theta_scan
float
,int
,optional
Theta scan angle in degree. The default is
0
.- title
str
,optional
Plot title. The default is
"3D Plot"
.- quantity_format
str
,optional
Conversion data function. Available functions are:
"abs"
,"ang"
,"dB10"
,"dB20"
,"deg"
,"imag"
,"norm"
, and"real"
.- export_image_path
str
,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
. IfFalse
, the Matplotlib instance of the plot is shown.
- farfield_quantity
- Returns:
matplotlib.plt
Whether to show the plotted curve. If
show=True
, a Matplotlib figure instance of the plot is returned. Ifshow=False
, the plotted curve is returned.
Examples
>>> import pyaedt >>> app = pyaedt.Hfss(specified_version="2023.2", designname="Antenna") >>> setup_name = "Setup1 : LastAdaptive" >>> frequencies = [77e9] >>> sphere = "3D" >>> data = app.get_antenna_ffd_solution_data(frequencies, setup_name, sphere) >>> data.polar_plot_3d(theta_scan=10)