Skip to content

Commit fe1a180

Browse files
committed
#581 adding gl3d color spec test cases
1 parent bc6fbc1 commit fe1a180

10 files changed

+111
-0
lines changed
Loading
55.1 KB
Loading
Loading
Loading
Loading
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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": "magenta"
10+
},
11+
"type":"scatter3d"
12+
}],
13+
"layout": {
14+
"title": "Specific color chosen for the line should transfer to markers to evade Z fighting",
15+
"height":758,
16+
"width":1310
17+
}
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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": "magenta"
10+
},
11+
"type":"scatter3d"
12+
}],
13+
"layout": {
14+
"title": "Specific color chosen for the line",
15+
"height":758,
16+
"width":1310
17+
}
18+
}
Lines changed: 29 additions & 0 deletions
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+
}
Lines changed: 29 additions & 0 deletions
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+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
},
10+
"type":"scatter3d"
11+
}],
12+
"layout": {
13+
"title": "No color spec for either marker or line",
14+
"height":758,
15+
"width":1310
16+
}
17+
}

0 commit comments

Comments
 (0)