The mattplotlib package provides a small, opinionated set of plotting helpers
layered on Matplotlib, Seaborn, and Plotly.
It includes a reusable Matplotlib style sheet and shared colour/font settings to give figures a consistent look across backends.
from mattplotlib import apply_mpl_style
apply_mpl_style() # loads mattplotlib/styles/mattplotlib.mplstyle- Defaults are defined in
mattplotlib/config.py; copymattplotlib/config.example.tomland set theMATTPLIB_CONFIGenvironment variable to point at your customised file. - The bundled Matplotlib style sheet lives at
mattplotlib/styles/mattplotlib.mplstyle. Override thematplotlib_styleentry in the config if you maintain a personal theme elsewhere.
See the demo.ipynb notebook for examples.
-
Loading colour palette
from mattplotlib import get_config palette = get_config().color_cycle
