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
# - classic.dark, classic.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 fancy and latex only)
  • numba>=0.57.0

development

when deploying a new version, there are three necessary steps to take.

  1. increase the version string in myplotlib/__init__.py.
  2. generate the previews:
    python3 previews/export_previews.py
    
  3. build the new 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.7.0.tar.gz (3.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

myplotlib-1.7.0-py3-none-any.whl (3.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: myplotlib-1.7.0.tar.gz
  • Upload date:
  • Size: 3.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for myplotlib-1.7.0.tar.gz
Algorithm Hash digest
SHA256 649388a738e3d5a92788135b69acdfd66de9020898094764240b874ea300f348
MD5 506f378e2e5f6eefe3aeca686b9ae2ea
BLAKE2b-256 69d3e4db7aada02db07b87bb0a1dca5a27de6f5b75082dedd688e0d652138f87

See more details on using hashes here.

File details

Details for the file myplotlib-1.7.0-py3-none-any.whl.

File metadata

  • Download URL: myplotlib-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for myplotlib-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 792462a5bdb566f623f97c72ad1159c7391a33e03ec30dd6e2b69fd959fcedca
MD5 c56bde7eac8f386e5a6cf3894524bf72
BLAKE2b-256 25aecf35448784895ce38570287397b416fa503d1c496c00682659ca05606ba2

See more details on using hashes here.

Supported by

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