plot_contour#
- ReportPlotter.plot_contour(trace=0, polar=False, levels=64, max_theta=180, min_theta=0, color_bar=None, snapshot_path=None, show=True, figure=None, is_spherical=True, normalize=None)#
Create a Matplotlib figure contour based on a list of data.
- Parameters:
- trace
int,str,optional Trace index on which create the 3D Plot.
- polarbool,
optional Generate the plot in polar coordinates. The default is
True. IfFalse, the plot generated is rectangular.- levels
int,optional Color map levels. The default is
64.- max_theta
floatorint,optional Maximum theta angle for plotting. It applies only for polar plots. The default is
180, which plots the data for all angles. Settingmax_thetato 90 limits the displayed data to the upper hemisphere, that is (0 < theta < 90).- min_theta
floatorint,optional Minimum theta angle for plotting. It applies only for polar plots. The default is
0.- color_bar
str,optional Color bar title. The default is
Nonein which case the color bar is not included.- 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.- figure
matplotlib.pyplot.Figure,optional An existing Matplotlib Figure to which the plot is added. If not provided, a new Figure and Axes object are created.
- is_sphericalbool,
optional Whether to use spherical or cartesian data.
- normalize
list,optional Normalize the color scale using the provided
[vmin, vmax]values. If not provided or invalid, automatic normalization is applied.
- trace
- Returns:
matplotlib.pyplot.FigureMatplotlib figure object.