Skip to main content

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 all setup_* methods
  • setup_colorblind configures matplotlib to use a colorblind palette
  • setup_latex_fonts configures matplotlib to use LaTeX fonts
  • save_fig acts like pyplot.save_fig but guarantees a minimum dpi, that the grid is on and removes outer white space
  • extract_legend_as_figure extracts the legend of your figure and plots it on another new figure
  • layout_for_subplots finds automatically a good layout given the number of plots you have to plot on the same figure

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

pltpublish-1.0.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

pltpublish-1.0.0-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

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