panel-plots
A simple to use and understand system for making panel plots with matplotlib. The panel-plots package is designed to make it easy to create panel plots with specific sizes, either panel size or overall figure size, maing it particularly suitable for generating figures for journal articles where you need to prepare an image of a particular size and ensure consistent and correct font sizing.
Getting started
The panel-plots package only manages location information, it leaves everything else up to you (and matplotlib). A simple example is to create a 2x3 panel plot of a specified total width. Rremember, knowing the width of the plot allows you to select the same font size as in your document and know the fonts will work out being the same size:
import matplotlib.pyplot as plt
from panels import FigureSizeLocator
loc = FigureSizeLocator(2, 3, figwidth=150, hsep=12, vsep=12,
padleft=10, padright=10, padtop=10, padbottom=10)
fig = plt.figure(figsize=loc.figsize)
for i, pos in enumerate(loc.panel_position_iterator()):
ax = fig.add_axes(pos)
ax.plot([0, 1, 2], [3, 2, 1])
ax.set_title('Panel #{}'.format(i))
plt.show()
You can do a similar thing but specify the size of the individual panels using the PanelSizeLocator locator.
Metadata
Release files for panel-plots 0.1.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 | Provenance | Actions |
|---|---|---|---|---|
| panel-plots-0.1.0.tar.gz | 24.5 kB | Without provenance | Details for panel-plots-0.1.0.tar.gz |
Release files / panel-plots-0.1.0.tar.gz
| Download URL | panel-plots-0.1.0.tar.gz |
|---|---|
| Size | 24.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5181c8c723b9ca6967c7135f7127b3c04a0b6ee7b39c7be69e26b5579f08b4f0
|
|
BLAKE2b-256 checksum How to use checksums |
17736d4e94ff51e5a8bf5cdb5bf798dfad9f74a7b0912ce92d2eade3e6e600f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for panel-plots 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.