Skip to content

Commit 5ab5c8e

Browse files
committed
#581 reifying various marker colorings
1 parent 2dfbf7c commit 5ab5c8e

10 files changed

+66
-119
lines changed
Loading
Loading
Loading
Binary file not shown.
Binary file not shown.

test/image/mocks/gl3d_scatter-color-line-gradient-explicit-marker.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"type":"scatter3d"
2626
}],
2727
"layout": {
28-
"name": "Color array for lines, and explicit color for markers",
28+
"title": "Color array for lines, and explicit color for markers",
2929
"height":758,
3030
"width":1310
3131
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"data": [{
3+
"x":["-4","-3","-2","-1","0","1","2","3","4","5","6"],
4+
"y":["7","5","6","4","2","3","1","3","-1","-4","-2"],
5+
"z":["2","3","4","5","4","3","2","1","0","-1","-2"],
6+
"marker": {
7+
"color": [1,2,3,4,5,6,7,8,9,10,11]
8+
},
9+
"line": {
10+
"width": 10,
11+
"color": [
12+
"rgb(166,206,227)",
13+
"rgb(31,120,180)",
14+
"rgb(31,120,180)",
15+
"rgb(178,223,138)",
16+
"rgb(51,160,44)",
17+
"rgb(51,160,44)",
18+
"rgb(251,154,153)",
19+
"rgb(227,26,28)",
20+
"rgb(255,127,0)",
21+
"rgb(106,61,154)",
22+
"rgb(106,61,154)"
23+
]
24+
},
25+
"type":"scatter3d"
26+
}],
27+
"layout": {
28+
"title": "Color array for lines, and numeric color array for markers",
29+
"height":758,
30+
"width":1310
31+
}
32+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"data": [{
3+
"x":["-4","-3","-2","-1","0","1","2","3","4","5","6"],
4+
"y":["7","5","6","4","2","3","1","3","-1","-4","-2"],
5+
"z":["2","3","4","5","4","3","2","1","0","-1","-2"],
6+
"marker": {
7+
"color": [1,2,3,4,5,6,7,8,9,10,11],
8+
"colorscale": "Viridis"
9+
},
10+
"line": {
11+
"width": 10,
12+
"color": [
13+
"rgb(166,206,227)",
14+
"rgb(31,120,180)",
15+
"rgb(31,120,180)",
16+
"rgb(178,223,138)",
17+
"rgb(51,160,44)",
18+
"rgb(51,160,44)",
19+
"rgb(251,154,153)",
20+
"rgb(227,26,28)",
21+
"rgb(255,127,0)",
22+
"rgb(106,61,154)",
23+
"rgb(106,61,154)"
24+
]
25+
},
26+
"type":"scatter3d"
27+
}],
28+
"layout": {
29+
"title": "Color array for lines, and numeric color array for markers with explicit Viridis palette",
30+
"height":758,
31+
"width":1310
32+
}
33+
}

test/image/mocks/gl3d_scatter-line-gradient-2.json

Lines changed: 0 additions & 30 deletions
This file was deleted.

test/image/mocks/gl3d_scatter-line-gradient.json

Lines changed: 0 additions & 88 deletions
This file was deleted.

0 commit comments

Comments
 (0)