Skip to content

Python3 package for generating publication quality figures in Matplotlib

License

Notifications You must be signed in to change notification settings

Rob217/nice-figures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nice Figures

A collection of scripts, modules, and style files for making publication quality figures in Matplotlib.

Styles are in accordance with American Physical Society (APS) and Nature publications.

alt text

To load module:

from nice_figures load *

Installation instructions

This package requires prior intallation of the following packages:

I recommend installing for the PyPI server using pip:

pip install nice-figures

Alternatively, the files can be downloaded directly from GitHub.

To import, use:

from nice_figures import *

Functions

The following functions are included:

  • load_style()

    Load a set of predefined rcParams.

  • add_numbering()

    Add numbering (e.g., a, b, c, 1, 2, 3, ...) to axes.

  • load_cols()

    Load a dictionary of colors.

  • add_border()

    Add a border around the figure. This is useful in, e.g., Jupyter notebooks, where it is unclear how large the figure.

For more details about each function, please see the function docstrings.

Examples

Example scripts and figures are given in examples.

Useful resources

Where was this package used?


Any suggestions for improvements are very welcome!

About

Python3 package for generating publication quality figures in Matplotlib

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages