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.
Important links
HTML documentation: https://faceted.readthedocs.io/en/latest/
Issue tracker: https://github.com/spencerkclark/faceted/issues
Source code: https://github.com/spencerkclark/faceted
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
Hashes for faceted-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a53f63a6261a1e871226dff688a1fdef78a3ac0db746739bad73b353bec095c9 |
|
MD5 | ffd333a227564e5c259d7837968de543 |
|
BLAKE2b-256 | 93af8ba0ed1d4e61b22eac6d66f8522dbfa1b2457e366723ccd3e09ee53578a7 |