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.
To load module:
from nice_figures load *
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 *
The following functions are included:
-
Load a set of predefined rcParams.
-
Add numbering (e.g., a, b, c, 1, 2, 3, ...) to axes.
-
Load a dictionary of colors.
-
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.
Example scripts and figures are given in examples.
- https://matplotlib.org/3.2.1/tutorials/introductory/customizing.html
- https://journals.aps.org/prl/authors
- https://www.nature.com/nature/for-authors/final-submission
Any suggestions for improvements are very welcome!