Skip to content

Commit 9ae855a

Browse files
committed
#581 more tests
1 parent 3e2c71c commit 9ae855a

9 files changed

+63
-25
lines changed
Loading
Loading
Loading
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
"mode": "lines+markers",
7+
"line": {
8+
"width": 5,
9+
"color": [
10+
"#67001f",
11+
"#b2182b",
12+
"#d6604d",
13+
"#f4a582",
14+
"#fddbc7",
15+
"#d1e5f0",
16+
"#92c5de",
17+
"#4393c3",
18+
"#2166ac",
19+
"#053061"
20+
]
21+
},
22+
"type":"scatter3d"
23+
}],
24+
"layout": {
25+
"title": "Markers should default to line color, partly to evade Z fighting",
26+
"height":758,
27+
"width":1310
28+
}
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
"mode": "lines",
7+
"line": {
8+
"width": 5,
9+
"color": [
10+
"#67001f",
11+
"#b2182b",
12+
"#d6604d",
13+
"#f4a582",
14+
"#fddbc7",
15+
"#d1e5f0",
16+
"#92c5de",
17+
"#4393c3",
18+
"#2166ac",
19+
"#053061"
20+
]
21+
},
22+
"type":"scatter3d"
23+
}],
24+
"layout": {
25+
"title": "Array of colors specified (colorbrewer example)",
26+
"height":758,
27+
"width":1310
28+
}
29+
}

test/image/mocks/gl3d_scatter-color-palette-with-default-marker.json

+2-12
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,8 @@
66
"mode": "lines+markers",
77
"line": {
88
"width": 5,
9-
"color": [
10-
"#67001f",
11-
"#b2182b",
12-
"#d6604d",
13-
"#f4a582",
14-
"#fddbc7",
15-
"#d1e5f0",
16-
"#92c5de",
17-
"#4393c3",
18-
"#2166ac",
19-
"#053061"
20-
]
9+
"colorscale": "Viridis",
10+
"color": [1,2,3,4,5,6,7,8,9,10]
2111
},
2212
"type":"scatter3d"
2313
}],

test/image/mocks/gl3d_scatter-color-palette.json

+3-13
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,13 @@
66
"mode": "lines",
77
"line": {
88
"width": 5,
9-
"color": [
10-
"#67001f",
11-
"#b2182b",
12-
"#d6604d",
13-
"#f4a582",
14-
"#fddbc7",
15-
"#d1e5f0",
16-
"#92c5de",
17-
"#4393c3",
18-
"#2166ac",
19-
"#053061"
20-
]
9+
"colorscale": "Viridis",
10+
"color": [1,2,3,4,5,6,7,8,9,10]
2111
},
2212
"type":"scatter3d"
2313
}],
2414
"layout": {
25-
"title": "Array of colors specified (colorbrewer example)",
15+
"title": "Palette of colors specified with colorscale (Viridis)",
2616
"height":758,
2717
"width":1310
2818
}

0 commit comments

Comments
 (0)