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

# initialize style:
import myplotlib
myplotlib.load(style=..., flavor=...)
# style can be [None | `fancy` | `mono` | `hershey`]
# flavor can be [None | `light` | `dark`]
# if not specified defaults to `style = None, flavor = None`

# auxiliary functions for plotting:
import myplotlib.plots as myplt
# type for docstring:
myplt?

# 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.0.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.2.0.tar.gz (5.8 MB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: myplotlib-1.2.0.tar.gz
  • Upload date:
  • Size: 5.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for myplotlib-1.2.0.tar.gz
Algorithm Hash digest
SHA256 885e6eafbcf291132f06fc5f653ef30088ab9e91b677eff500ea5fa97c2c5416
MD5 61e13828153c778e6d3a15debb8e83de
BLAKE2b-256 3d7a4eb9bb5d74228c0c46f10d0afe285bbc7a806388dbed375c223c9951be10

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