Skip to main content

Methods and style files for making publication quality figures

Project description

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!

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

nice-figures-0.0.2.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nice_figures-0.0.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file nice-figures-0.0.2.tar.gz.

File metadata

  • Download URL: nice-figures-0.0.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for nice-figures-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7b2ad54d3d3a4efa6c2b23741ad3b329e9c2c44896fe76aaec30331441ae85fa
MD5 387a18b0d7f40fccebd0c44f0bd6295e
BLAKE2b-256 4da480ae6766fbdf2dab9138fe4abf0d0146bc7adcb9c3d48f6739f5792d73f1

See more details on using hashes here.

File details

Details for the file nice_figures-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: nice_figures-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for nice_figures-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 36a9c8e7bde5d76dafab59d4aafae186b43e711b54d623707ad74a4cdb1dbf3e
MD5 03659053f21cafc7bfd833a86cf62e43
BLAKE2b-256 5a49f8a25cdb698f0547f2a6203fda23709d58fc007ca44e54ca0bbde59eb578

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page