myplotlib
matplotlib binder with custom styles and routines for fast plotting. see previews of available styles.
installation
pip install myplotlib
usage
loading style, fonts & colormaps
import matplotlib.pyplot as plt
from myplotlib import register
register()
plt.style.use(STYLE)
# STYLE can be:
# - fancy.dark, fancy.light
# - classic.dark, classic.light
# - mono.dark, mono.light
# - guttenberg.dark, guttenberg.light
# - soviet
# - 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(...)
register()loads the bundled styles, fonts, and colormaps into Matplotlib. importingmyplotlibstill registers them for backward compatibility, but the explicit call keeps linters from flagging an unused side-effect import.
auxiliary plotting functions
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?
the guttenberg styles mimic renaissance-era book illustrations: old-style lettering (P22 Operina Pro, with EB Garamond as fallback for missing glyphs), imperfect hand-drawn lines, and a single-ink line cycle. they pair well with myplt.hatchedCircle, which shades circles with engraving-style hatching (optionally only the crescent shadow, as on old drawings of moon phases):
with plt.style.context("guttenberg.light"):
fig, ax = plt.subplots()
ax.set_aspect("equal")
myplt.hatchedCircle(ax, (0, 0), 1, angle=45, spacing=0.15)
myplt.hatchedCircle(ax, (2.5, 0), 1, shade_from=0, shade_depth=0.8)
for more usage examples checkout the tests/ submodule.
requirements
python >= 3.10latex(used forfancyandlatexonly)
To-do
- 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
Metadata
Release files for myplotlib 1.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| myplotlib-1.9.0.tar.gz | 4.5 MB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| myplotlib-1.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 MB
Release files / myplotlib-1.9.0.tar.gz
| Download URL | myplotlib-1.9.0.tar.gz |
|---|---|
| Size | 4.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b30e59641715888e1f7dbb28d4a08f3c08a53714abade4c3ae2c0ecacac3108
|
|
BLAKE2b-256 checksum How to use checksums |
4ccdf477d624fbc8ea933e2a666132a37345da87d68399c8ef325cc9464a6167
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logRelease files / myplotlib-1.9.0-py3-none-any.whl
| Download URL | myplotlib-1.9.0-py3-none-any.whl |
|---|---|
| Size | 4.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a9f5e65a21023e3821c9b28f88552f9a2335ebd7ffb21099f2f42554172b394
|
|
BLAKE2b-256 checksum How to use checksums |
c9a45e91f7f57be20ed1c251b6776558db329317ea92c72ea685a538b45e9aae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logSecurity for myplotlib 1.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for myplotlib-1.9.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.