Skip to content

Commit 0280e26

Browse files
committed
Colorblind friendly DryWet, fix example
1 parent cf8952b commit 0280e26

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

docs/2dplots.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
"data1 = (state.rand(20, 20) - 0.43).cumsum(axis=0)\n",
205205
"data2 = (state.rand(20, 20) - 0.57).cumsum(axis=0)\n",
206206
"f, axs = plot.subplots(ncols=2, axwidth=2.5, aspect=1.5)\n",
207-
"cmap = plot.Colormap('Moisture', cut=0.1)\n",
207+
"cmap = plot.Colormap('DryWet', cut=0.1)\n",
208208
"axs.format(suptitle='Midpoint normalizer demo')\n",
209209
"for ax, data, mode in zip(axs, (data1, data2), ('positive', 'negative')):\n",
210210
" m = ax.contourf(data, norm='midpoint', cmap=cmap)\n",

proplot/cmaps/DryWet.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
{
2-
"saturation": [
2+
"hue": [
33
[
44
0.0,
5-
100.0,
6-
100.0
5+
-20.0,
6+
-20.0
77
],
88
[
9-
0.0,
10-
100.0,
11-
100.0
9+
0.5,
10+
80.0,
11+
130.0
1212
],
1313
[
1414
1.0,
15-
100.0,
16-
100.0
15+
230.0,
16+
230.0
1717
]
1818
],
19-
"hue": [
19+
"saturation": [
2020
[
2121
0.0,
22-
21.85074586521333,
23-
21.85074586521333
22+
100.0,
23+
100.0
2424
],
2525
[
2626
0.5,
27-
31.85074586521333,
28-
81.00747354133905
27+
80.0,
28+
80.0
2929
],
3030
[
3131
1.0,
32-
222.6405808325136,
33-
222.6405808325136
32+
100.0,
33+
100.0
3434
]
3535
],
3636
"luminance": [
@@ -41,8 +41,8 @@
4141
],
4242
[
4343
0.5,
44-
97.0,
45-
97.0
44+
100.0,
45+
100.0
4646
],
4747
[
4848
1.0,
@@ -67,7 +67,7 @@
6767
1.0
6868
]
6969
],
70-
"gamma1": 1.3,
71-
"gamma2": 1.3,
72-
"space": "hpl"
70+
"space": "hpl",
71+
"gamma1": 1.2,
72+
"gamma2": 1.2
7373
}

0 commit comments

Comments
 (0)