Skip to content

Commit 7d0ca19

Browse files
committed
Add mpl(tab*) aliases to the vega colormaps
1 parent a019f61 commit 7d0ca19

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

doc/changelog.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
Changelog
22
=========
33

4+
v0.13.4
5+
-------
6+
7+
*2025-05-02*
8+
9+
Enhancements
10+
************
11+
12+
- Added aliases to the vega colormaps for the names used in matplotlib.
13+
(plotnine issue [#938](https://github.com/has2k1/plotnine/issues/938))
14+
415
v0.13.3
516
-------
617

mizani/_colors/_colormaps/_maps/_palette_interpolated.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@
5454
"observable10",
5555
"tableau10",
5656
"tableau20",
57+
"tab10",
58+
"tab20",
59+
"tab20b",
60+
"tab20c",
5761
)
5862

5963
BrBG = diverging.BrBG.colormap
@@ -101,3 +105,9 @@
101105
observable10 = other_qualitative.observable10.colormap
102106
tableau10 = other_qualitative.tableau10.colormap
103107
tableau20 = other_qualitative.tableau20.colormap
108+
# Aliases to accomodate the names of the vega colormaps
109+
# according to matplotlib
110+
tab10 = other_qualitative.category10.colormap
111+
tab20 = other_qualitative.category20.colormap
112+
tab20b = other_qualitative.category20b.colormap
113+
tab20c = other_qualitative.category20c.colormap

0 commit comments

Comments
 (0)