NicePlots can be pip installed directly from PyPI
pip install niceplots
- Clone this repository, then enter the folder in the command line terminal.
- Enter
pip install -e .
within theniceplots
folder.
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.
import matplotlib.pyplot as plt
andimport 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 toget_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
, andplot_nested_pie
, which are all documented in the examples gallery. - Admire your beautiful data.
Sort of, you can find our examples gallery and API documentation here
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.
Make any changes you see fit. Please fork your own version and submit a pull request.
Please post questions and suggestions to either the issues (if it's concerning a bug) or discussions tab on the NicePlots GitHub repo.