Skip to content

Commit 8e707c6

Browse files
committed
test partial ranges on matching axes
1 parent 36cb0fa commit 8e707c6

File tree

2 files changed

+105
-0
lines changed

2 files changed

+105
-0
lines changed
37.2 KB
Loading
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
"data": [
3+
{
4+
"x": [
5+
3.5, 3.0, 3.2, 3.1, 3.6, 3.9, 3.4, 3.4, 2.9, 3.1, 3.7, 3.4, 3.0, 3.0,
6+
4.0, 4.4, 3.9, 3.5, 3.8, 3.8, 3.4, 3.7, 3.6, 3.3, 3.4, 3.0, 3.4, 3.5,
7+
3.4, 3.2, 3.1, 3.4, 4.1, 4.2, 3.1, 3.2, 3.5, 3.1, 3.0, 3.4, 3.5, 2.3,
8+
3.2, 3.5, 3.8, 3.0, 3.8, 3.2, 3.7, 3.3
9+
],
10+
"xaxis": "x",
11+
"y": [
12+
5.1, 4.9, 4.7, 4.6, 5.0, 5.4, 4.6, 5.0, 4.4, 4.9, 5.4, 4.8, 4.8, 4.3,
13+
5.8, 5.7, 5.4, 5.1, 5.7, 5.1, 5.4, 5.1, 4.6, 5.1, 4.8, 5.0, 5.0, 5.2,
14+
5.2, 4.7, 4.8, 5.4, 5.2, 5.5, 4.9, 5.0, 5.5, 4.9, 4.4, 5.1, 5.0, 4.5,
15+
4.4, 5.0, 5.1, 4.8, 5.1, 4.6, 5.3, 5.0
16+
],
17+
"yaxis": "y",
18+
"mode": "markers"
19+
},
20+
{
21+
"x": [
22+
3.2, 3.2, 3.1, 2.3, 2.8, 2.8, 3.3, 2.4, 2.9, 2.7, 2.0, 3.0, 2.2, 2.9,
23+
2.9, 3.1, 3.0, 2.7, 2.2, 2.5, 3.2, 2.8, 2.5, 2.8, 2.9, 3.0, 2.8, 3.0,
24+
2.9, 2.6, 2.4, 2.4, 2.7, 2.7, 3.0, 3.4, 3.1, 2.3, 3.0, 2.5, 2.6, 3.0,
25+
2.6, 2.3, 2.7, 3.0, 2.9, 2.9, 2.5, 2.8
26+
],
27+
"xaxis": "x2",
28+
"y": [
29+
7.0, 6.4, 6.9, 5.5, 6.5, 5.7, 6.3, 4.9, 6.6, 5.2, 5.0, 5.9, 6.0, 6.1,
30+
5.6, 6.7, 5.6, 5.8, 6.2, 5.6, 5.9, 6.1, 6.3, 6.1, 6.4, 6.6, 6.8, 6.7,
31+
6.0, 5.7, 5.5, 5.5, 5.8, 6.0, 5.4, 6.0, 6.7, 6.3, 5.6, 5.5, 5.5, 6.1,
32+
5.8, 5.0, 5.6, 5.7, 5.7, 6.2, 5.1, 5.7
33+
],
34+
"yaxis": "y2",
35+
"mode": "markers"
36+
},
37+
{
38+
"x": [
39+
3.3, 2.7, 3.0, 2.9, 3.0, 3.0, 2.5, 2.9, 2.5, 3.6, 3.2, 2.7, 3.0, 2.5,
40+
2.8, 3.2, 3.0, 3.8, 2.6, 2.2, 3.2, 2.8, 2.8, 2.7, 3.3, 3.2, 2.8, 3.0,
41+
2.8, 3.0, 2.8, 3.8, 2.8, 2.8, 2.6, 3.0, 3.4, 3.1, 3.0, 3.1, 3.1, 3.1,
42+
2.7, 3.2, 3.3, 3.0, 2.5, 3.0, 3.4, 3.0
43+
],
44+
"xaxis": "x3",
45+
"y": [
46+
6.3, 5.8, 7.1, 6.3, 6.5, 7.6, 4.9, 7.3, 6.7, 7.2, 6.5, 6.4, 6.8, 5.7,
47+
5.8, 6.4, 6.5, 7.7, 7.7, 6.0, 6.9, 5.6, 7.7, 6.3, 6.7, 7.2, 6.2, 6.1,
48+
6.4, 7.2, 7.4, 7.9, 6.4, 6.3, 6.1, 7.7, 6.3, 6.4, 6.0, 6.9, 6.7, 6.9,
49+
5.8, 6.8, 6.7, 6.7, 6.3, 6.5, 6.2, 5.9
50+
],
51+
"yaxis": "y3",
52+
"mode": "markers"
53+
}
54+
],
55+
"layout": {
56+
"xaxis": {
57+
"anchor": "y",
58+
"domain": [0.0, 0.3],
59+
"title": {
60+
"text": "sepal_width"
61+
},
62+
"range": [1.5, null]
63+
},
64+
"yaxis": {
65+
"anchor": "x",
66+
"domain": [0.0, 1.0],
67+
"title": {
68+
"text": "sepal_length"
69+
},
70+
"range": [3, null]
71+
},
72+
"xaxis2": {
73+
"anchor": "y2",
74+
"domain": [0.35, 0.65],
75+
"matches": "x",
76+
"title": {
77+
"text": "sepal_width"
78+
}
79+
},
80+
"yaxis2": {
81+
"anchor": "x2",
82+
"matches": "y",
83+
"showticklabels": false
84+
},
85+
"xaxis3": {
86+
"anchor": "y3",
87+
"domain": [0.65, 1],
88+
"matches": "x",
89+
"title": {
90+
"text": "sepal_width"
91+
}
92+
},
93+
"yaxis3": {
94+
"anchor": "x3",
95+
"matches": "y",
96+
"showticklabels": false
97+
},
98+
"showlegend": false,
99+
"margin": {
100+
"t": 50
101+
},
102+
"width": 1200,
103+
"height": 400
104+
}
105+
}

0 commit comments

Comments
 (0)