Skip to content

Commit 6baabe1

Browse files
committed
Simplify BiOrangeBlue definition
1 parent 82af129 commit 6baabe1

File tree

1 file changed

+5
-29
lines changed

1 file changed

+5
-29
lines changed

lib/matplotlib/_cm_bivar.py

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# auto-generated by https://github.com/trygvrad/multivariate_colormaps
2-
# date: 2024-05-24
3-
41
import numpy as np
52
from matplotlib.colors import SegmentedBivarColormap
63

4+
# auto-generated by https://github.com/trygvrad/multivariate_colormaps
5+
# date: 2024-05-24
76
BiPeak = np.array(
87
[0.000, 0.674, 0.931, 0.000, 0.680, 0.922, 0.000, 0.685, 0.914, 0.000,
98
0.691, 0.906, 0.000, 0.696, 0.898, 0.000, 0.701, 0.890, 0.000, 0.706,
@@ -1276,32 +1275,9 @@
12761275
]).reshape((65, 65, 3))
12771276

12781277
BiOrangeBlue = np.array(
1279-
[0.000, 0.000, 0.000, 0.000, 0.0625, 0.125, 0.000, 0.125, 0.250, 0.000,
1280-
0.1875, 0.375, 0.000, 0.250, 0.500, 0.000, 0.3125, 0.625, 0.000, 0.375,
1281-
0.750, 0.000, 0.4375, 0.875, 0.000, 0.500, 1.000, 0.125, 0.0625, 0.000,
1282-
0.125, 0.125, 0.125, 0.125, 0.1875, 0.250, 0.125, 0.250, 0.375, 0.125,
1283-
0.3125, 0.500, 0.125, 0.375, 0.625, 0.125, 0.4375, 0.750, 0.125, 0.500,
1284-
0.875, 0.125, 0.5625, 1.000, 0.250, 0.125, 0.000, 0.250, 0.1875, 0.125,
1285-
0.250, 0.250, 0.250, 0.250, 0.3125, 0.375, 0.250, 0.375, 0.500, 0.250,
1286-
0.4375, 0.625, 0.250, 0.500, 0.750, 0.250, 0.5625, 0.875, 0.250, 0.625,
1287-
1.000, 0.375, 0.1875, 0.000, 0.375, 0.250, 0.125, 0.375, 0.3125, 0.250,
1288-
0.375, 0.375, 0.375, 0.375, 0.4375, 0.500, 0.375, 0.500, 0.625, 0.375,
1289-
0.5625, 0.750, 0.375, 0.625, 0.875, 0.375, 0.6875, 1.000, 0.500, 0.250,
1290-
0.000, 0.500, 0.3125, 0.125, 0.500, 0.375, 0.250, 0.500, 0.4375, 0.375,
1291-
0.500, 0.500, 0.500, 0.500, 0.5625, 0.625, 0.500, 0.625, 0.750, 0.500,
1292-
0.6875, 0.875, 0.500, 0.750, 1.000, 0.625, 0.3125, 0.000, 0.625, 0.375,
1293-
0.125, 0.625, 0.4375, 0.250, 0.625, 0.500, 0.375, 0.625, 0.5625, 0.500,
1294-
0.625, 0.625, 0.625, 0.625, 0.6875, 0.750, 0.625, 0.750, 0.875, 0.625,
1295-
0.8125, 1.000, 0.750, 0.375, 0.000, 0.750, 0.4375, 0.125, 0.750, 0.500,
1296-
0.250, 0.750, 0.5625, 0.375, 0.750, 0.625, 0.500, 0.750, 0.6875, 0.625,
1297-
0.750, 0.750, 0.750, 0.750, 0.8125, 0.875, 0.750, 0.875, 1.000, 0.875,
1298-
0.4375, 0.000, 0.875, 0.500, 0.125, 0.875, 0.5625, 0.250, 0.875, 0.625,
1299-
0.375, 0.875, 0.6875, 0.500, 0.875, 0.750, 0.625, 0.875, 0.8125, 0.750,
1300-
0.875, 0.875, 0.875, 0.875, 0.9375, 1.000, 1.000, 0.500, 0.000, 1.000,
1301-
0.5625, 0.125, 1.000, 0.625, 0.250, 1.000, 0.6875, 0.375, 1.000, 0.750,
1302-
0.500, 1.000, 0.8125, 0.625, 1.000, 0.875, 0.750, 1.000, 0.9375, 0.875,
1303-
1.000, 1.000, 1.000,
1304-
]).reshape((9, 9, 3))
1278+
[0.0, 0.0, 0.0, 0.0, 0.5, 1.0,
1279+
1.0, 0.5, 0.0, 1.0, 1.0, 1.0,
1280+
]).reshape((2, 2, 3))
13051281

13061282
cmaps = {
13071283
"BiPeak": SegmentedBivarColormap(

0 commit comments

Comments
 (0)