matplotlib
binder with custom styles and routines for fast plotting. see previews of available styles.
pip install myplotlib
import myplotlib
import matplotlib.pyplot as plt
plt.style.use(STYLE)
# STYLE can be:
# - fancy.dark, fancy.light
# - hershey.dark, hershey.light
# - mono.dark, mono.light
# - latex
# you may also combine the styles:
plt.style.use([STYLE1, STYLE2])
# and you can temporarily load the style:
with plt.style.context(STYLE):
plt.plot(...)
import myplotlib.plots as myplt
# type for docstring:
myplt?
# for specific function:
myplt.plot2d?
# preview custom styles with built-in functions
import myplotlib.tests as mypltest
# type for docstring:
mypltest?
for more usage examples checkout the tests/
submodule.
python >= 3.8
matplotlib >= 3.5.0
,numpy
latex
(used forstyle="fancy"
only)numba>=0.57.0
Building tarballs in the dist
directory:
python -m build --sdist --outdir dist .
- isocontour plotting
- add streamplot for fieldline plotting
- print all the newly added colormaps and the default color sequence
- add a test plot for the demo
- add image to readme
- dark mode
- monotype non-Latex mode