helper functions for cartopy and matplotlib
This package solves two main problems for plots with maps created with cartopy. Because these plots have a fixed aspect ratio (1) colorbars will extend beyond the visible axes and (2) the distance between individual subplots will seemingly be random.
subplots
Without mplotutils | With mplotutils |
---|---|
The code to create the examples can be found in docs/example.py.
axes_grid
Matplotlib's axes_grid can also display data with a fixed aspect ratio. However, the size of the figure will not be correct. mplotutils (from version 0.6) can also help with this
Axes grid - without mplotutils | Axes grid - with mplotutils |
---|---|
The code to create the example can be found in docs/example_axes_grid.py.
mplotutils (from version 0.6) includes helper functions to draw hatches and add stippling:
The code to create the example can be found in docs/example_hatch.py.
See docs/installation.md.
See CHANGELOG.md.
This package bases on functions developped for the python visualisation workshop at C2SM.