pltpublish
Utility package that takes care of configuring Matplotlib for publication-ready figures!
pip install pltpublish
Before After
> import pltpublish as pub
> pub.setup()
# your plot code using plt > # your plot code using plt
plt.savefig("my_fig.eps") > pub.save_fig("my_fig.eps")
Without pltpublish |
With pltpublish |
|---|---|
Recommendation
If you are using LaTeX then perhaps TikzPlotLib will be highly relevant.
All Features
setupcalls allsetup_*methodssetup_colorblindconfigures matplotlib to use a colorblind palettesetup_latex_fontsconfigures matplotlib to use LaTeX fontsset_size_pixelsenables to set the size of an existing figure in pixelssave_figacts likepyplot.savefigbut guarantees that the grid is on and removes outer white space and also enables to scale up or down the figure before savingextract_legend_as_figureextracts the legend of your figure and plots it on another new figurelayout_for_subplotsfinds automatically a good layout given the number of plots you have to plot on the same figureget_color_cyclegets you the current default color cycleset_color_cyclesets the current default color cycle
Release files for pltpublish 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pltpublish-1.0.3.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pltpublish-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / pltpublish-1.0.3.tar.gz
| Download URL | pltpublish-1.0.3.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3eb7dc3f8f87307dbf72b64aa45034de12e28cd6bf29fb8cc67b05d49f9cad5c
|
|
BLAKE2b-256 checksum How to use checksums |
b9c9d720aa05436f1fed003a1966a2d7d772c313952a9efa84a604d79dc604d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.0
|
Release files / pltpublish-1.0.3-py3-none-any.whl
| Download URL | pltpublish-1.0.3-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d06977f57679643c59b1d1a2cec923f823642fab53f5589e02c666cfa6e4a09b
|
|
BLAKE2b-256 checksum How to use checksums |
85b3ab60e88b9c42c9fa2d59d22b2a77eaf7fc083a3148fb71ffad87cd314819
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.0
|