utilities for matplotlib and cartopy
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mplotutils-0.6.0.tar.gz.
File metadata
- Download URL: mplotutils-0.6.0.tar.gz
- Upload date:
- Size: 940.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5be2a9fbc100247cc42aa751f89407b3b3dd6130e65ef08f816a1bf2c43d353f
|
|
| MD5 |
d72779efb2e2b6f896fdd86669816355
|
|
| BLAKE2b-256 |
2b773d2a6faaedba635a234cc640c25a5afe104edc378ccf4d905f3010060a82
|
File details
Details for the file mplotutils-0.6.0-py3-none-any.whl.
File metadata
- Download URL: mplotutils-0.6.0-py3-none-any.whl
- Upload date:
- Size: 38.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a12ba8884818cf6a296bc560439d020fee3f0fbfbde51dd001135c4feab393eb
|
|
| MD5 |
9d618ac49db229cc99d1d0c89622ceb8
|
|
| BLAKE2b-256 |
d71259c884503c39cadebcd10c30939cb6bcd12b6df5dc6037e9d5b5dd596492
|