Skip to main content

Plotting utilities for matplotlib in python

Project description

NicePlots

A collection of nice styles and helper functions for matplotlib

Build Status Documentation Status PyPI PyPI - Downloads Code style: black

How do I install?

NicePlots can be pip installed directly from PyPI

pip install niceplots

If you want to make changes

  • Clone this repository, then enter the folder in the command line terminal.
  • Enter pip install -e . within the niceplots folder.

Font installation

As of v2.6.0, NicePlots now comes packaged with the fonts required for its custom styles, so you don't need to install them yourself.

How do I get set up?

  • import matplotlib.pyplot as plt and import niceplots at the top of a file where you would like to use any function defined in this package.
  • Use plt.style.use(niceplots.get_style()) to set some defaults for nice-looking plots. You can also try passing different styles to get_style(), such as NicePlots' "james-dark" or any of matplotlib's styles (see the function's documentation for a full list of available NicePlots styles).
  • Take advantage of NicePlots' helper functions, including (but not limited to) adjust_spines, horiz_bar, and plot_nested_pie, which are all documented in the examples gallery.
  • Admire your beautiful data.

Do you have docs?

Sort of, you can find our examples gallery and API documentation here

Help, my old NicePlots code doesn't work anymore!

We made a couple of changes to the API in version 2.0.0, most of them can be fixed with a simple find and replace. Check the release notes for more details.

Contribution guidelines

Make any changes you see fit. Please fork your own version and submit a pull request.

Who do I talk to?

Please post questions and suggestions to either the issues (if it's concerning a bug) or discussions tab on the NicePlots GitHub repo.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

niceplots-2.6.0-py3-none-any.whl (6.7 MB view details)

Uploaded Python 3

File details

Details for the file niceplots-2.6.0-py3-none-any.whl.

File metadata

  • Download URL: niceplots-2.6.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for niceplots-2.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 777ecbddd8c7df09cb50f47fd5534203fac80fdb72004b42f2e290d22634ff08
MD5 1b086dd5a4aa8a69381cdaaa81e92337
BLAKE2b-256 f7d84143fe66d29619815a15964177c095c0f9bf6e0bcd5a17208f6d1fc92a4b

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