Skip to content

Commit 15d0eb1

Browse files
committed
#581 tests for autocolorscale
1 parent 77bf53f commit 15d0eb1

4 files changed

+38
-0
lines changed
Loading
Loading
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
"colorscale": "Reds",
11+
"autocolorscale": false
12+
}
13+
}],
14+
"layout": {
15+
"title": "Custom (Reds) palette and autocolorscale is explicitly set to false",
16+
"height":758,
17+
"width":1310
18+
}
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
"colorscale": "Viridis",
11+
"autocolorscale": true
12+
}
13+
}],
14+
"layout": {
15+
"title": "Custom (Viridis) palette but autocolorscale is set to true",
16+
"height":758,
17+
"width":1310
18+
}
19+
}

0 commit comments

Comments
 (0)