Skip to main content

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!

Metadata

Release files for nice-figures 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nice-figures 0.0.2
File Size Uploaded
nice-figures-0.0.2.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nice-figures 0.0.2
File Interpreter ABI Platform
nice_figures-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.4 kB

Release files / nice-figures-0.0.2.tar.gz

Download URL nice-figures-0.0.2.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7b2ad54d3d3a4efa6c2b23741ad3b329e9c2c44896fe76aaec30331441ae85fa
BLAKE2b-256 checksum
How to use checksums
4da480ae6766fbdf2dab9138fe4abf0d0146bc7adcb9c3d48f6739f5792d73f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

Release files / nice_figures-0.0.2-py3-none-any.whl

Download URL nice_figures-0.0.2-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36a9c8e7bde5d76dafab59d4aafae186b43e711b54d623707ad74a4cdb1dbf3e
BLAKE2b-256 checksum
How to use checksums
5a49f8a25cdb698f0547f2a6203fda23709d58fc007ca44e54ca0bbde59eb578
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page