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:

import mpl_drip  # Registers the style with matplotlib

plt.style.use("drip")

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.1.0.tar.gz (81.1 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.1.0-py3-none-any.whl (53.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mpl_drip-1.1.0.tar.gz
Algorithm Hash digest
SHA256 433eaa17cb7081ff0cf4284edf5a76206756966378145bdacdb2099a67b2f6ca
MD5 20fc04920fe123e181f5ccfbdfb24917
BLAKE2b-256 21926ed44e19aff488f62c5cf1c3d45b3bc9f3ad5d285d88d54bbba25e20f417

See more details on using hashes here.

Provenance

The following attestation bundles were made for mpl_drip-1.1.0.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.1.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for mpl_drip-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f0de6dcd216ce2a5ff916ec3cdd6b6022484009d5cb5db97ca2a637495d084f
MD5 f83a3a604effa4d559bba00da656223c
BLAKE2b-256 ac925809d4a974434c267f07559ba3a7b9df3c83ac61a992d9d09d9b046db090

See more details on using hashes here.

Provenance

The following attestation bundles were made for mpl_drip-1.1.0-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