enstools.plot.interactive_contours

enstools.plot.interactive_contours(variable, lon=None, lat=None, **kwargs)

Creates a plot of interactive contours.

Parameters:
variablexarray

Values of a variable and a range of other parameters describing the variable and the grid.

lonxarray.DataArray or np.ndarray or str

longitude coordinate or name of longitude coordinate. The name may only be used for xarray variables.

latxarray.DataArray or np.ndarray or str

latitude coordinate or name of longitude coordinate. The name may only be used for xarray variables.

Other optional keyword arguments:
**kwargs
figure: bokeh or plotly figure object

If provided, this figure instance will be used (and returned), otherwise a new figure will be created.

filled: [True | False]

If True a filled contour is plotted, which is the default

selected_backendEnum element, optional, default=Library.BOKEH

Definition of a library for plotting. Element from Library Enum.

aspectfloat, optional, default=None

Aspect ratio between a figure width and a height as a fraction.

sizeint, optional, default=800

Size of a figure width in pixels. Size of a figure height is calculated from an aspectratio.

map_resolution{‘110m’, ‘50m’, ‘10m’}, optional, default=’110m’

Definition of a map resolution.

cmapstr

Name of the color map to use. Default: CMRmap_r

line_widthint

Line width, default is 1.

Returns:
figure

Figure object contains interactive contours with a colorbars.