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.2-py3-none-any.whl (6.7 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: niceplots-2.6.2-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.13.7

File hashes

Hashes for niceplots-2.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 528cf0b912ab63070a7617407ce7e1b031cb8eb958804bf3acb0a2f8be414116
MD5 bf5d0c5dfd13e7a0da583437720f4674
BLAKE2b-256 846bdd4f0846d0e2b804831862eee37350acaf14c0969a7d6d881c26cb520339

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