chaosmagpy.plot_utils.plot_maps¶
- chaosmagpy.plot_utils.plot_maps(theta_grid, phi_grid, *args, **kwargs)[source]¶
Plots global maps of 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.
- 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_r'
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).- projectionstr
Projection of the target frame (defaults to ‘mollweide’).
- **kwargskeywords
Other options to pass to matplotlib
pcolormesh()
method.
Notes
For more customization get access to the figure and axes handles through matplotlib by using
fig = plt.gcf()
andaxes = fig.axes
right after the call to this plotting function.