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 [`fancy` | `mono` | `hershey`]
# flavor can be [`light` | `dark`]
# if not specified defaults to `style = 'main', flavor = 'light'`

# 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.6
  • matplotlib >= 3.0.0, numpy, numba
  • latex (used for style="fancy" only)

development

Building tarballs in the dist directory:

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

Latest updates

  • 1.0.0 [Dec 2022]
    • initial release to pypi
  • 0.9.4r2 [Mar 2022]
    • better hershey font
    • fallback cursive font added
  • v0.9.4 [Mar 2022]
    • new hershey style a-la IDL
    • minor bug fixes in auto-determining the plot ranges
    • PEP 8 compatible style

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.0.0.tar.gz (3.0 MB view hashes)

Uploaded Source

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