Skip to content

Commit a0c9c55

Browse files
Add the Petroff qualitative color sequences (#92)
* Add the Petroff qualitative color sequences * style(pre-commit.ci): auto fixes [...] --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent b484ad7 commit a0c9c55

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

src/cmap/data/petroff/__init__.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
petroff6 = [
2+
[87, 144, 252], # blue
3+
[248, 156, 32], # orange
4+
[228, 37, 54], # red
5+
[150, 74, 139], # purple
6+
[156, 156, 161], # gray
7+
[122, 33, 221], # purple
8+
]
9+
10+
petroff8 = [
11+
[24, 69, 251], # blue
12+
[255, 94, 2], # orange
13+
[201, 31, 22], # red
14+
[200, 73, 169], # purple
15+
[173, 173, 125], # gray
16+
[134, 200, 221], # light blue
17+
[87, 141, 255], # blue
18+
[101, 99, 100], # gray
19+
]
20+
21+
petroff10 = [
22+
[63, 144, 218], # blue
23+
[255, 169, 14], # orange
24+
[189, 31, 1], # red
25+
[148, 164, 162], # gray
26+
[131, 45, 182], # purple
27+
[169, 107, 89], # brown
28+
[231, 99, 0], # orange
29+
[185, 172, 112], # tan
30+
[113, 117, 129], # gray
31+
[146, 218, 221], # light blue
32+
]

src/cmap/data/petroff/record.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"authors": [
3+
"Matthew A. Petroff"
4+
],
5+
"category": "qualitative",
6+
"colormaps": {
7+
"petroff10": {
8+
"data": "cmap.data.petroff:petroff10",
9+
"interpolation": false
10+
},
11+
"petroff6": {
12+
"data": "cmap.data.petroff:petroff6",
13+
"interpolation": false
14+
},
15+
"petroff8": {
16+
"data": "cmap.data.petroff:petroff8",
17+
"interpolation": false
18+
}
19+
},
20+
"info": "Color sequences generated using a data-driven aesthetic-preference model and accessibility constraints.",
21+
"namespace": "petroff",
22+
"source": "https://arxiv.org/abs/2107.02270"
23+
}

0 commit comments

Comments
 (0)