Skip to content

Theomat/pltpublish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  • save_fig acts like pyplot.savefig 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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages