mplotutils
helper functions for cartopy and matplotlib
fix layout for cartopy axes and colorbars
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.
hatching
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.
Installation
See docs/installation.md.
Changelog
See CHANGELOG.md.
History
This package bases on functions developed for the python visualisation workshop at C2SM.
Metadata
Release files for mplotutils 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mplotutils-0.7.0.tar.gz | 938.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mplotutils-0.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 973.9 kB
Release files / mplotutils-0.7.0.tar.gz
| Download URL | mplotutils-0.7.0.tar.gz |
|---|---|
| Size | 938.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0204c2231493fd19892d09a917e60755a6cbce4eed186917c4e3100f24b304d2
|
|
BLAKE2b-256 checksum How to use checksums |
e222f05f56bf6cf12369c0e3baa9720989a8811158ab6a02da0f54f2d54789a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / mplotutils-0.7.0-py3-none-any.whl
| Download URL | mplotutils-0.7.0-py3-none-any.whl |
|---|---|
| Size | 35.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e10bd685db45eb2f5e5709d17e4c9e5f4920a29757f1eb7d296a3170d3a78d61
|
|
BLAKE2b-256 checksum How to use checksums |
590c8d81a5f08ba6a70af970fed85de324852b2cd1b13a7c4084eb29b88d2f10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|