Utility package that takes care of configuring Matplotlib for publication-ready figures!
Project description
pltpublish
Utility package that takes care of configuring Matplotlib for publication-ready figures!
Easy to use
Before After
> import pltpublish as pub
> pub.setup()
# your plot code > # your plot code
plt.savefig("my_fig.eps") > pub.save_fig("my_fig.eps")
Without pltpublish |
With pltpublish |
---|---|
All Features
setup
calls allsetup_*
methodssetup_colorblind
configures matplotlib to use a colorblind palettesetup_latex_fonts
configures matplotlib to use LaTeX fontssave_fig
acts likepyplot.save_fig
but guarantees a minimum dpi, that the grid is on and removes outer white spaceextract_legend_as_figure
extracts the legend of your figure and plots it on another new figurelayout_for_subplots
finds automatically a good layout given the number of plots you have to plot on the same figure
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
pltpublish-1.0.0.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for pltpublish-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cca8e88d272bdac81130a8fef64363a72982b7d816f1cca3f30727d05df1faa0 |
|
MD5 | b5dbf814811ab78adff38e287e8bfc98 |
|
BLAKE2b-256 | 0978e934afffe4d7db2c5b2b8c042ed8a17a9863f3c195361cec3b469227e979 |