Matplotdrip
Make your Matplotlib dripped up
Install / Use
/learn @TomHilder/MatplotdripREADME
matplotdrip
<div align="center"> <img src="https://raw.githubusercontent.com/TomHilder/matplotdrip/main/examples/histogram.png" alt="histogram" width="500"></img> </div>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 mactexor 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.
Related Skills
node-connect
352.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
