plot_range_angle_map#

FRTMPlotter.plot_range_angle_map(frame: int = None, pulse: int = None, window: str = None, range_bins: int = None, cross_range_bins: int = None, doa_method: str = None, field_of_view=None, dynamic_range=None, quantity_format: str = None, polar: bool = False, title: str = 'Angle vs Range (Azimuth)', output_file: str = None, show: bool = True, show_legend: bool = True, size: tuple = (1920, 1440), figure=None)#

Create range-angle map contour plot.

Parameters:
frameint, optional

Frame number. The default is None, in which case all frames are used.

pulse: int, optional

Index of the pulse to extract. The default is None in which case the center pulse (middle index) is used.

window: str, optional

Type of window. The default is None. Available options are "Hann", "Hamming", and "Flat".

range_binsint, optional

Number of bins to use in the range (frequency) dimension. If None, number of channels is used.

cross_range_binsint, optional

Number of bins in the angular (azimuth) dimension. If None, 181 bins are used.

doa_methodstr, optional

Method used for direction of arrival estimation. Available options are: "Bartlett", "Capon", and "Music". The default is None, in which case "Bartlett" is selected.

field_of_viewlist, optional

Azimuth angular span in degrees to plot. The default is [-90, 90].

dynamic_rangefloat, optional
Dynamic range in dB.

If provided, the color map is clipped between the max power and max - dynamic_range.

quantity_formatstr, optional

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

polarbool, optional

Generate the plot in polar coordinates. The default is True. If False, the plot generated is rectangular.

titlestr, optional

Title of the plot. The default is "Range profile".

output_filestr or pathlib.Path, optional

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

showbool, optional

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

show_legendbool, optional

Whether to display the legend or not. The default is True.

sizetuple, optional

Image size in pixel (width, height).

figurematplotlib.pyplot.Figure, optional

An existing Matplotlib Figure to which the plot is added. If not provided, a new Figure and Axes objects are created. Default is None.

Returns:
ansys.aedt.core.visualization.plot.matplotlib.ReportPlotter

PyAEDT matplotlib figure object.

Examples

>>> from ansys.aedt.core.visualization.advanced.frtm_visualization import get_results_files
>>> from ansys.aedt.core.visualization.advanced.frtm_visualization import FRTMData
>>> from ansys.aedt.core.visualization.advanced.frtm_visualization import FRTMPlotter
>>> output_directory = "directory.results"
>>> frames_dict = get_results_files(directory)
>>> for frame, data_frame in frames_dict.items():
>>>     doppler_data = FRTMData(data_frame)
>>>     data[frame] = doppler_data
>>> frtm_plotter = FRTMPlotter(data)
>>> frame_number = frtm_plotter.frames[0]
>>> frtm_plotter.plot_range_angle_map(frame=frame_number)
>>> frtm_plotter.plot_range_angle_map(output_file="range_angle_map.gif", animation=True, show=False)