Skip to main content

`matplotlib` binder with custom styles and routines for fast plotting

Project description

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 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(...)

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?

for more usage examples checkout the tests/ submodule.

requirements

  • python >= 3.8
  • matplotlib >= 3.5.0, numpy
  • latex (used for style="fancy" only)
  • numba>=0.57.0

development

Building tarballs in the dist directory:

python -m build --sdist --outdir dist .

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

myplotlib-1.5.0.tar.gz (5.9 MB view details)

Uploaded Source

File details

Details for the file myplotlib-1.5.0.tar.gz.

File metadata

  • Download URL: myplotlib-1.5.0.tar.gz
  • Upload date:
  • Size: 5.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for myplotlib-1.5.0.tar.gz
Algorithm Hash digest
SHA256 60c4ef7ff187aef0798c65c8bedf9a202a629a5676e9c5bcf834863a3e5e24ed
MD5 9224fa30fb6695e52292e3f58a16902d
BLAKE2b-256 3aa8e94296eab03b799556b60a4855da3b815fa872100c4f39e5daf89e0f0761

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page