Skip to main content

Make your matplotlib dripped up.

Project description

matplotdrip

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 matplotdrip

or uv (recommended)

uv add matplotdrip

Or, you can clone and build from source

git clone git@github.com:TomHilder/matplotdrip.git
cd matplotdrip
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 matplotdrip  # 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 matplotdrip import get_color
c = get_color(N) # N is any positive integer

To access the custom colormaps:

from matplotdrip 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

matplotdrip-2.0.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.

matplotdrip-2.0.0-py3-none-any.whl (53.3 kB view details)

Uploaded Python 3

File details

Details for the file matplotdrip-2.0.0.tar.gz.

File metadata

  • Download URL: matplotdrip-2.0.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 matplotdrip-2.0.0.tar.gz
Algorithm Hash digest
SHA256 9f54a02a08f5c84443122d6fb0ee085e75bdd19c7eb10471acf6f463b66f591c
MD5 adfb3bfca80f3e78b049194d2572ca82
BLAKE2b-256 bf2fb892251e62599d9caa8de51312bb6e804ca9a9db713ac61342070b886e7f

See more details on using hashes here.

Provenance

The following attestation bundles were made for matplotdrip-2.0.0.tar.gz:

Publisher: release.yml on TomHilder/matplotdrip

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

File details

Details for the file matplotdrip-2.0.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for matplotdrip-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45108b52a2347c0c9b9ef7cc7e2b30e5a38a3ff22ae98f4f6b15e186578e6ed9
MD5 50f4a042acc41054265bde6b10da3a7e
BLAKE2b-256 01adfd614cdc86503b14d7cb6e9c92195f00e549cec448445e776380b38253f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for matplotdrip-2.0.0-py3-none-any.whl:

Publisher: release.yml on TomHilder/matplotdrip

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