Skip to main content

Utility package that takes care of configuring Matplotlib for publication-ready figures!

Project description

pltpublish

This project on PyPi|GitHub.

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 using plt                        > # your plot code using plt
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
  • set_size_pixels enables to set the size of an existing figure in pixels
  • save_fig acts like pyplot.savefig but guarantees that the grid is on and removes outer white space and also enables to scale up or down the figure before saving
  • 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.2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

pltpublish-1.0.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file pltpublish-1.0.2.tar.gz.

File metadata

  • Download URL: pltpublish-1.0.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for pltpublish-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8a90d6e3447b858cfab1338240eb5f5eda40dcc8ce19ae97145a3b7792e43a65
MD5 4fbfe60df2f20b7a3fb603933e138f2d
BLAKE2b-256 824cfd75c87a3f62c49f298ffdb598f44d9dff5a4f6636c05e9892f46f389afc

See more details on using hashes here.

File details

Details for the file pltpublish-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pltpublish-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for pltpublish-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 76648eb2293f61c8455b0000499349c32301c7e05d8b25821a708bde9b3feb0c
MD5 c23605b3d51900f05394d3fed1e746df
BLAKE2b-256 3d213787b8f152d13c7e1c7d6bdf55747711054f4b0782c13734fe61d2bf8317

See more details on using hashes here.

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