Skip to main content

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")

LaTeX

For the best-looking plots, install LaTeX on your system. The style will automatically use LaTeX for text rendering when available, giving you proper Computer Modern fonts and math typesetting.

If LaTeX is not installed, the style falls back to matplotlib's built-in mathtext renderer with Computer Modern fonts - still looks good, just not quite as crisp.

Installing LaTeX:

  • macOS: brew install --cask mactex or install BasicTeX for a smaller footprint
  • Ubuntu/Debian: sudo apt install texlive-latex-extra texlive-fonts-recommended dvipng cm-super
  • Windows: Install MiKTeX or TeX Live

Credit

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

Metadata

Release files for matplotdrip 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for matplotdrip 2.1.0
File Size Uploaded
matplotdrip-2.1.0.tar.gz 81.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for matplotdrip 2.1.0
File Interpreter ABI Platform
matplotdrip-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 135.3 kB

Release files / matplotdrip-2.1.0.tar.gz

Download URL matplotdrip-2.1.0.tar.gz
Size 81.5 kB
Tags Source
SHA-256 checksum
How to use checksums
25b97ec1e4ff4d3429d5e7fd77eb59bd4806240e3a2fc6c3738d0f06b6d2837f
BLAKE2b-256 checksum
How to use checksums
1998c57e67067734a49731c9865324beeccd5d9841cb1324e9cb73289e07cfc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 29, 2026.

Transparency log

Release files / matplotdrip-2.1.0-py3-none-any.whl

Download URL matplotdrip-2.1.0-py3-none-any.whl
Size 53.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e09361c07170d44b001e5b318e3eb2cb6c67728b70b964d5dc174911f4117ac9
BLAKE2b-256 checksum
How to use checksums
7099c753564b59a5115d199d2a2e617ac97fa1cd24352189087da31f20db09af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 29, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page