2.10.1.2. vacumm.report.ifroco.maps
– Plotting maps¶
Plotting maps
-
get_plot_specs
(lon, lat, xfigsize=None, axes_rect=None)[source]¶ Get plot area specs
Params: - lon/lat: Data coordinates to plot.
-
nested_axes
(rect1=None, margins=None, fig=None)[source]¶ Setup two nested axes
Params: rect1, optional: Rectangle specs for the inner axes [left,bottom,width,height] in figure coordinates. Default from config
[maps] cax
.margin, option: Margins in pixel around the inner axes [left,bottom,right,top].
Default from config
[maps] cax_margins
.
Return: ax0, ax1
-
plot_map
(data, levels=None, units=None, long_name=None, title=None, axes_rect=None, xfigsize=None, extend=None, savefig=None, copyright=None, logos=None, close=True, **kwargs)[source]¶ Plot data on a map
Params: - data: Single 2D variable or tuple of two variables for quiver.
- units, optional: Change data units displayed in the colorar label.
- long_name, optional: Name dispay in the default title.
- title, optional: Title as a string or list of strings.
It is dsipayed using
add_title()
. - copyright, optional: Add a copyright (multi-)line to the plot
using
add_copyright()
. - logos, optional: Add logos to the plot
using
add_logos()
. - savefig, optional: Save the figure to this file.
- Extra keywords are passed to the
map2()
method.