Skip to content

Commit 2dfbf7c

Browse files
committed
#581 negative / positive / both default scales
1 parent f86eeb5 commit 2dfbf7c

8 files changed

+83
-0
lines changed
Loading
Loading
Loading
Loading
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": "purple"
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+
"name": "Color array for lines, and explicit color for markers",
29+
"height":758,
30+
"width":1310
31+
}
32+
}
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": "markers",
7+
"type":"scatter3d",
8+
"marker": {
9+
"color": [-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11]
10+
}
11+
}],
12+
"layout": {
13+
"title": "Marker colors specified via color array of negative values; default palette",
14+
"height":758,
15+
"width":1310
16+
}
17+
}
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": "markers",
7+
"type":"scatter3d",
8+
"marker": {
9+
"color": [1,2,3,4,5,6,7,8,9,10,11]
10+
}
11+
}],
12+
"layout": {
13+
"title": "Marker colors specified via color array of positive values; default palette",
14+
"height":758,
15+
"width":1310
16+
}
17+
}
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": "markers",
7+
"type":"scatter3d",
8+
"marker": {
9+
"color": [-2,-1,0,1,2,3,4,5,6,7,8]
10+
}
11+
}],
12+
"layout": {
13+
"title": "Marker colors specified via color array of both positive and negative values; default palette",
14+
"height":758,
15+
"width":1310
16+
}
17+
}

0 commit comments

Comments
 (0)