Skip to content

Commit 21148d4

Browse files
committed
improve tests
1 parent aadbd54 commit 21148d4

File tree

4 files changed

+83
-4
lines changed

4 files changed

+83
-4
lines changed
Loading
632 Bytes
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scatter",
5+
"mode": "markers",
6+
"xaxis": "x",
7+
"yaxis": "y",
8+
"x": [0,1,2,3,4,5,6,7,8,9,10],
9+
"y":[0,10,20,30,40,50,60,70,80,90,100]
10+
},
11+
{
12+
"type": "scatter",
13+
"mode": "markers",
14+
"xaxis": "x2",
15+
"yaxis": "y2",
16+
"x": [0,1,2,3,4,5,6,7,8,9,10],
17+
"y":[0,10,20,30,40,50,60,70,80,90,100]
18+
},
19+
{
20+
"type": "scatterpolar",
21+
"mode": "markers",
22+
"subplot": "polar",
23+
"r": [0,1,2,3,4,5,6,7,8,9,10],
24+
"theta":[0,10,20,30,40,50,60,70,80,90,100]
25+
},
26+
{
27+
"type": "scatterpolar",
28+
"mode": "markers",
29+
"subplot": "polar2",
30+
"r": [0,1,2,3,4,5,6,7,8,9,10],
31+
"theta":[0,10,20,30,40,50,60,70,80,90,100]
32+
}
33+
],
34+
"layout": {
35+
"showlegend": false,
36+
"width": 800,
37+
"height": 800,
38+
"xaxis": {
39+
"anchor": "y",
40+
"domain": [0, 0.45],
41+
"maxallowed": 6.2,
42+
"minallowed": 5.8
43+
},
44+
"yaxis": {
45+
"anchor": "x",
46+
"domain": [0, 0.45]
47+
},
48+
"xaxis2": {
49+
"autorange": "reversed",
50+
"anchor": "y2",
51+
"domain": [0, 0.45],
52+
"maxallowed": 6.2,
53+
"minallowed": 5.8
54+
},
55+
"yaxis2": {
56+
"anchor": "x2",
57+
"domain": [0.55, 1]
58+
},
59+
"polar": {
60+
"domain": {
61+
"x": [0.55, 1],
62+
"y": [0, 0.45]
63+
},
64+
"radialaxis": {
65+
"maxallowed": 6.2,
66+
"minallowed": 5.8
67+
}
68+
},
69+
"polar2": {
70+
"domain": {
71+
"x": [0.55, 1],
72+
"y": [0.55, 1]
73+
},
74+
"radialaxis": {
75+
"autorange": "reversed",
76+
"maxallowed": 6.2,
77+
"minallowed": 5.8
78+
}
79+
}
80+
}
81+
}

test/image/mocks/zz-allowed-range.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@
4242
},
4343
"yaxis": {
4444
"anchor": "x",
45-
"domain": [0, 0.45],
46-
"minallowed": 6
45+
"domain": [0, 0.45]
4746
},
4847
"xaxis2": {
4948
"autorange": "reversed",
@@ -53,8 +52,7 @@
5352
},
5453
"yaxis2": {
5554
"anchor": "x2",
56-
"domain": [0.55, 1],
57-
"minallowed": 6
55+
"domain": [0.55, 1]
5856
},
5957
"polar": {
6058
"domain": {

0 commit comments

Comments
 (0)