Skip to content

Commit af025a2

Browse files
committed
add trace w/ coloraxis to contour_heatmap_coloring_reversescale mock
1 parent 6b9dc74 commit af025a2

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed
Loading

test/image/mocks/contour_heatmap_coloring_reversescale.json

+35-1
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,46 @@
1414
"contours": {
1515
"coloring": "heatmap"
1616
},
17-
"reversescale": true
17+
"reversescale": true,
18+
"colorbar": {
19+
"len": 0.5,
20+
"y": 1,
21+
"yanchor": "top",
22+
"title": {"text": "trace colorscale", "side": "right"}
23+
}
24+
},
25+
{
26+
"z": [
27+
[ 10, 10.625, 12.5, 15.625, 20 ],
28+
[ 5.625, 6.25, 8.125, 11.25, 15.625 ],
29+
[ 2.5, 3.125, 5, 8.125, 12.5 ],
30+
[ 0.625, 1.25, 3.125, 6.25, 10.625 ],
31+
[ 0, 0.625, 2.5, 5.625, 10 ]
32+
],
33+
"x": [ -9, -6, -5, -3, -1 ],
34+
"y": [ 0, 1, 4, 5, 7 ],
35+
"type": "contour",
36+
"contours": {
37+
"coloring": "heatmap"
38+
},
39+
"coloraxis": "coloraxis",
40+
"xaxis": "x2",
41+
"yaxis": "y2"
1842
}
1943
],
2044
"layout": {
45+
"grid": {"rows": 2, "columns": 1, "pattern": "independent"},
2146
"title": {
2247
"text": "Setting the X and Y Coordinates in a Contour Plot + reverse scale"
48+
},
49+
"coloraxis": {
50+
"reversescale": true,
51+
"colorbar": {
52+
"len": 0.5,
53+
"y": 0,
54+
"yanchor": "bottom",
55+
"title": {"text": "coloraxis colorscale", "side": "right"}
56+
}
2357
}
2458
}
2559
}

0 commit comments

Comments
 (0)