chaosmagpy.plot_utils.plot_maps

chaosmagpy.plot_utils.plot_maps(theta_grid, phi_grid, *args, **kwargs)[source]

Returns a global map showing the input arguments.

Parameters:
theta_gridndarray

Array containing the colatitude in degrees.

phi_gridndarray

Array containing the longitude in degrees.

*argsndarray

Array of values to plot on the global map. Several arrays can be provided as separated arguments.

Returns:
figmatplotlib.figure.Figure

Matplotlib figure.

axesmatplotlib.axes.Axes, ndarray

Array of which singleton dimenions have been squeezed out. Only the axes instance is returned in case of a single axis.

Other Parameters:
figsize2-tuple of floats

Figure dimension (width, height) in inches.

titleslist of strings

Subplot titles (defaults to empty strings).

labelstring

Colorbar label (defaults to an empty string).

layout2-tuple of int

Layout of the subplots (defaults to vertically stacked subplots).

cmapstr

Colormap code (defaults to 'PuOr' colormap).

limiterfunction, lambda expression

Function to compute symmetric colorbar limits (defaults to maximum of the absolute values in the input, or use 'vmin', 'vmax' keywords instead).

projectioncartopy.crs

Projection of the target frame (defaults to cartopy.crs.Mollweide()).

transformcartopy.crs

Projection of input frame (defaults to cartopy.crs.PlateCarree())

**kwargskeywords

Other options to pass to matplotlib pcolormesh() method.