Skip to content

Commit 8536ceb

Browse files
TomHilderclaude
andcommitted
Rename package from mpl_drip to matplotdrip
BREAKING CHANGE: Package renamed. Update imports: - `import mpl_drip` → `import matplotdrip` - `from mpl_drip import ...` → `from matplotdrip import ...` - `pip install mpl-drip` → `pip install matplotdrip` Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 6249753 commit 8536ceb

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# mpl_drip
1+
# matplotdrip
22

33
<div align="center">
4-
<img src="https://raw.githubusercontent.com/TomHilder/mpl_drip/main/examples/histogram.png" alt="histogram" width="500"></img>
4+
<img src="https://raw.githubusercontent.com/TomHilder/matplotdrip/main/examples/histogram.png" alt="histogram" width="500"></img>
55
</div>
66

77
Installable matplotlib style sheet, a color cycle, and some nice colormaps.
@@ -13,20 +13,20 @@ I use these settings because I think they make plots that are "good", but also (
1313
Easiest is from PyPI either with `pip`
1414

1515
```sh
16-
pip install mpl-drip
16+
pip install matplotdrip
1717
```
1818

1919
or `uv` (recommended)
2020

2121
```sh
22-
uv add mpl-drip
22+
uv add matplotdrip
2323
```
2424

2525
Or, you can clone and build from source
2626

2727
```sh
28-
git clone git@github.com:TomHilder/mpl_drip.git
29-
cd mpl_drip
28+
git clone git@github.com:TomHilder/matplotdrip.git
29+
cd matplotdrip
3030
pip install -e .
3131
```
3232

@@ -37,22 +37,22 @@ where in the last step we made an editable install with pip but you can do whate
3737
To use the plotting style:
3838

3939
```python
40-
import mpl_drip # Registers the style with matplotlib
40+
import matplotdrip # Registers the style with matplotlib
4141

4242
plt.style.use("drip")
4343
```
4444

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

4747
```python
48-
from mpl_drip import get_color
48+
from matplotdrip import get_color
4949
c = get_color(N) # N is any positive integer
5050
```
5151

5252
To access the custom colormaps:
5353

5454
```python
55-
from mpl_drip import colormaps
55+
from matplotdrip import colormaps
5656
# Then simply use `red_white_blue` or `red_white_blue_r` in place of any mpl cmap
5757
plt.imshow(..., cmap="red_white_blue_r")
5858
```

examples/histogram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import matplotlib.pyplot as plt
22
import numpy as np
33

4-
import mpl_drip
4+
import matplotdrip
55

66
rng = np.random.default_rng(seed=0)
77

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
2-
name = "mpl_drip"
2+
name = "matplotdrip"
33
dynamic = ["version"]
4-
description = "Make your mpl dripped up."
4+
description = "Make your matplotlib dripped up."
55
readme = "README.md"
66
authors = [{ name = "Tom Hilder", email = "thomas.hilder@monash.edu" }]
77
requires-python = ">=3.9"
@@ -19,7 +19,7 @@ requires = ["hatchling", "hatch-vcs"]
1919
build-backend = "hatchling.build"
2020

2121
[tool.hatch.build]
22-
include = ["src/mpl_drip/custom.mplstyle", "src/mpl_drip/py.typed"]
22+
include = ["src/matplotdrip/custom.mplstyle", "src/matplotdrip/py.typed"]
2323
exclude = ["**/__pycache__/**"]
2424

2525
[tool.hatch.version]
@@ -29,7 +29,7 @@ source = "vcs"
2929
include = ["src/**", "README.md", "LICENSE", "examples/**"]
3030

3131
[tool.hatch.build.targets.wheel]
32-
packages = ["src/mpl_drip"]
32+
packages = ["src/matplotdrip"]
3333

3434
[tool.hatch.build.hooks.vcs]
35-
version-file = "src/mpl_drip/_version.py"
35+
version-file = "src/matplotdrip/_version.py"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
commit_id: COMMIT_ID
2929
__commit_id__: COMMIT_ID
3030

31-
__version__ = version = '1.0.4.dev0+gbd8abcd80.d20250811'
32-
__version_tuple__ = version_tuple = (1, 0, 4, 'dev0', 'gbd8abcd80.d20250811')
31+
__version__ = version = '1.1.1.dev0+g6249753e0.d20260129'
32+
__version_tuple__ = version_tuple = (1, 1, 1, 'dev0', 'g6249753e0.d20260129')
3333

3434
__commit_id__ = commit_id = None

0 commit comments

Comments
 (0)