Skip to main content

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
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
Without mplotutils 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:

mplotutils hatching

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mplotutils-0.7.0.tar.gz (938.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mplotutils-0.7.0-py3-none-any.whl (35.2 kB view details)

Uploaded Python 3

File details

Details for the file mplotutils-0.7.0.tar.gz.

File metadata

  • Download URL: mplotutils-0.7.0.tar.gz
  • Upload date:
  • Size: 938.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for mplotutils-0.7.0.tar.gz
Algorithm Hash digest
SHA256 0204c2231493fd19892d09a917e60755a6cbce4eed186917c4e3100f24b304d2
MD5 997df7f368aa6b751f469f5b49f9e3c8
BLAKE2b-256 e222f05f56bf6cf12369c0e3baa9720989a8811158ab6a02da0f54f2d54789a5

See more details on using hashes here.

File details

Details for the file mplotutils-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: mplotutils-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 35.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for mplotutils-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e10bd685db45eb2f5e5709d17e4c9e5f4920a29757f1eb7d296a3170d3a78d61
MD5 fd1c8793c83f2a4c24581f9a7f56bc5f
BLAKE2b-256 590c8d81a5f08ba6a70af970fed85de324852b2cd1b13a7c4084eb29b88d2f10

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 files

0.6.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page