Skip to content

Commit ce8d06f

Browse files
committed
improve contour label reversed axes mock
1 parent 17e7823 commit ce8d06f

File tree

2 files changed

+29
-11
lines changed

2 files changed

+29
-11
lines changed
Loading

test/image/mocks/contour_label-reversed-axes.json

+29-11
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,48 @@
33
{
44
"type": "contour",
55
"z": [
6-
[1, 2, 1],
7-
[2, 1, 2],
8-
[2, 1, 2]
6+
[1, 2, 3],
7+
[2, 0, 0],
8+
[3, 0, 3]
99
],
10-
"contours": {"showlabels": true}
10+
"contours": {"showlabels": true},
11+
"showscale": false
1112
},
1213
{
1314
"type": "contour",
1415
"z": [
15-
[1, 2, 1],
16-
[2, 1, 2],
17-
[2, 1, 2]
16+
[1, 2, 3],
17+
[2, 0, 0],
18+
[3, 0, 3]
1819
],
1920
"contours": {"showlabels": true},
21+
"showscale": false,
2022
"xaxis": "x2",
2123
"yaxis": "y2"
2224
},
2325
{
2426
"type": "contour",
2527
"z": [
26-
[1, 2, 1],
27-
[2, 1, 2],
28-
[2, 1, 2]
28+
[1, 2, 3],
29+
[2, 0, 0],
30+
[3, 0, 3]
2931
],
3032
"contours": {"showlabels": true},
33+
"showscale": false,
3134
"xaxis": "x3",
3235
"yaxis": "y3"
36+
},
37+
{
38+
"type": "contour",
39+
"z": [
40+
[1, 2, 3],
41+
[2, 0, 0],
42+
[3, 0, 3]
43+
],
44+
"contours": {"showlabels": true},
45+
"showscale": false,
46+
"xaxis": "x4",
47+
"yaxis": "y4"
3348
}
3449
],
3550
"layout": {
@@ -40,6 +55,9 @@
4055

4156
"xaxis2": {"autorange": "reversed"},
4257

43-
"yaxis3": {"autorange": "reversed"}
58+
"yaxis3": {"autorange": "reversed"},
59+
60+
"xaxis4": {"range": [2.05, -0.05]},
61+
"yaxis4": {"range": [2.2, -0.2]}
4462
}
4563
}

0 commit comments

Comments
 (0)