Skip to main content

Make your mpl dripped up.

Project description

mpl_drip

histogram

Installable matplotlib style sheet, a color cycle, and some nice colormaps.

I use these settings because I think they make plots that are "good", but also (as the kids would say) "dripped up".

Installation

Easiest is from PyPI either with pip

pip install mpl-drip

or uv (recommended)

uv add mpl-drip

Or, you can clone and build from source

git clone git@github.com:TomHilder/mpl_drip.git
cd mpl_drip
pip install -e .

where in the last step we made an editable install with pip but you can do whatever you like.

Usage

To use the plotting style:

# Inside an environment where mpl_drip is installed (no need to import)
plt.style.use("mpl_drip.custom")

To get a colour from the cycle by index, wrapping around if the index exceeds the number of colours:

from mpl_drip import get_color
c = get_color(N) # N is any positive integer

To access the custom colormaps:

from mpl_drip import colormaps
# Then simply use `red_white_blue` or `red_white_blue_r` in place of any mpl cmap
plt.imshow(..., cmap="red_white_blue_r")

Credit

The colour cycle is from manim, and the red_white_blue colourmap is from this repo.

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

mpl_drip-1.0.5.tar.gz (81.0 kB view details)

Uploaded Source

Built Distribution

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

mpl_drip-1.0.5-py3-none-any.whl (53.1 kB view details)

Uploaded Python 3

File details

Details for the file mpl_drip-1.0.5.tar.gz.

File metadata

  • Download URL: mpl_drip-1.0.5.tar.gz
  • Upload date:
  • Size: 81.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mpl_drip-1.0.5.tar.gz
Algorithm Hash digest
SHA256 f411145343483a7b9498f88116b94e2d6d96ed671b3bdfbcc75be3b0d130dd0f
MD5 54f6e7bf9ffdf893e28d86f88ca512c8
BLAKE2b-256 4971695f236ed3427a5b875be88d95f936d2221dbdb931f3b15f939cc1a8e39e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mpl_drip-1.0.5.tar.gz:

Publisher: release.yml on TomHilder/mpl_drip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mpl_drip-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: mpl_drip-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 53.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mpl_drip-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b40446dcca478d764caffc3ab4b2376cbd86e6623bd57d4464cc95fadbdf14c5
MD5 2bd012445cf252cf2d65c4c237e05e55
BLAKE2b-256 02da173b61ec6db5bd73e382b6c69cb60b0158bf0f374553628cfbf188c0bc12

See more details on using hashes here.

Provenance

The following attestation bundles were made for mpl_drip-1.0.5-py3-none-any.whl:

Publisher: release.yml on TomHilder/mpl_drip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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