Skip to main content

Precisely spaced subplots

Project description

The purpose of this module is to make it easy to produce single-or-multi-panel figures in matplotlib with strict dimensional constraints. For example, perhaps you would like to make a figure that fits exactly within a column of a manuscript without any scaling, and you would like the panels to be as large as possible, but retain a fixed aspect ratio (height divided by width). Maybe some (or all) of your panels require an accompanying colorbar. With out of the box matplotlib tools this is actually somewhat tricky.

Internally, this module uses the flexible [matplotlib AxesGrid toolkit](https://matplotlib.org/2.0.2/mpl_toolkits/axes_grid/users/overview.html#axes-grid1), with some additional logic to enable making these kinds of dimensionally-constrained panel plots with precise padding and colorbar size(s).

Another project with a similar motivation is [panel-plots]( https://github.com/ajdawson/panel-plots); however it does not have support for adding colorbars to a dimensionally-constrained figure. One part of the implementation there that inspired part of what is done here is the ability to add user-settable padding to the edges of the figure (to add space for axes ticks, ticklabels, and labels). This eliminates the need for using bbox_inches=’tight’ when saving the figure, and enables you to make sure that your figures are exactly the dimensions you need for your use.

Project details


Download files

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

Source Distribution

faceted-0.2.1.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

faceted-0.2.1-py2.py3-none-any.whl (11.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file faceted-0.2.1.tar.gz.

File metadata

  • Download URL: faceted-0.2.1.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.4 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

File hashes

Hashes for faceted-0.2.1.tar.gz
Algorithm Hash digest
SHA256 58a2d733717c2cdfd84118943c7f1a8876150abe818464850c67887425657f23
MD5 34440f63ccc77250eb129a64a1aa3771
BLAKE2b-256 791bd479db8eed18e213bf262260b1df7c7e4004b3401f2ee6107e6eddc450d7

See more details on using hashes here.

Provenance

File details

Details for the file faceted-0.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: faceted-0.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.4 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

File hashes

Hashes for faceted-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bd6c845f97f61428e08adbabc291c76d0a3cf34c3709690b5bff8cde7290f573
MD5 6372523f65a81db4fd877ff5aed5ca09
BLAKE2b-256 8718f5eaae0818f68eccd6d19acf6dc2de08cb1d0b3d62e8cc29d4b5f3d3681e

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page