Skip to content

Commit 4c66949

Browse files
committed
add failing test - wrong mapping on reversed ranges
1 parent 4c5d245 commit 4c66949

File tree

2 files changed

+237
-0
lines changed

2 files changed

+237
-0
lines changed
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,237 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scatter",
5+
"mode": "markers+lines",
6+
"x": [
7+
"1970-01-01 00:00:00.000",
8+
"1970-01-01 00:00:00.010",
9+
"1970-01-01 00:00:00.020",
10+
"1970-01-01 00:00:00.030",
11+
"1970-01-01 00:00:00.040",
12+
"1970-01-01 00:00:00.050",
13+
"1970-01-01 00:00:00.060",
14+
"1970-01-01 00:00:00.070",
15+
"1970-01-01 00:00:00.080",
16+
"1970-01-01 00:00:00.090",
17+
"1970-01-01 00:00:00.100",
18+
"1970-01-01 00:00:00.110",
19+
"1970-01-01 00:00:00.120",
20+
"1970-01-01 00:00:00.130",
21+
"1970-01-01 00:00:00.140",
22+
"1970-01-01 00:00:00.150",
23+
"1970-01-01 00:00:00.160",
24+
"1970-01-01 00:00:00.170",
25+
"1970-01-01 00:00:00.180",
26+
"1970-01-01 00:00:00.190",
27+
"1970-01-01 00:00:00.200"
28+
]
29+
},
30+
{
31+
"xaxis": "x2",
32+
"yaxis": "y2",
33+
"type": "scatter",
34+
"mode": "markers+lines",
35+
"x": [
36+
"1970-01-01 00:00:00.000",
37+
"1970-01-01 00:00:00.010",
38+
"1970-01-01 00:00:00.020",
39+
"1970-01-01 00:00:00.030",
40+
"1970-01-01 00:00:00.040",
41+
"1970-01-01 00:00:00.050",
42+
"1970-01-01 00:00:00.060",
43+
"1970-01-01 00:00:00.070",
44+
"1970-01-01 00:00:00.080",
45+
"1970-01-01 00:00:00.090",
46+
"1970-01-01 00:00:00.100",
47+
"1970-01-01 00:00:00.110",
48+
"1970-01-01 00:00:00.120",
49+
"1970-01-01 00:00:00.130",
50+
"1970-01-01 00:00:00.140",
51+
"1970-01-01 00:00:00.150",
52+
"1970-01-01 00:00:00.160",
53+
"1970-01-01 00:00:00.170",
54+
"1970-01-01 00:00:00.180",
55+
"1970-01-01 00:00:00.190",
56+
"1970-01-01 00:00:00.200"
57+
]
58+
},
59+
{
60+
"xaxis": "x3",
61+
"yaxis": "y3",
62+
"type": "scatter",
63+
"mode": "markers+lines",
64+
"orientation": "h",
65+
"y": [
66+
"1970-01-01 00:00:00.000",
67+
"1970-01-01 00:00:00.010",
68+
"1970-01-01 00:00:00.020",
69+
"1970-01-01 00:00:00.030",
70+
"1970-01-01 00:00:00.040",
71+
"1970-01-01 00:00:00.050",
72+
"1970-01-01 00:00:00.060",
73+
"1970-01-01 00:00:00.070",
74+
"1970-01-01 00:00:00.080",
75+
"1970-01-01 00:00:00.090",
76+
"1970-01-01 00:00:00.100",
77+
"1970-01-01 00:00:00.110",
78+
"1970-01-01 00:00:00.120",
79+
"1970-01-01 00:00:00.130",
80+
"1970-01-01 00:00:00.140",
81+
"1970-01-01 00:00:00.150",
82+
"1970-01-01 00:00:00.160",
83+
"1970-01-01 00:00:00.170",
84+
"1970-01-01 00:00:00.180",
85+
"1970-01-01 00:00:00.190",
86+
"1970-01-01 00:00:00.200"
87+
]
88+
},
89+
{
90+
"xaxis": "x4",
91+
"yaxis": "y4",
92+
"type": "scatter",
93+
"mode": "markers+lines",
94+
"orientation": "h",
95+
"y": [
96+
"1970-01-01 00:00:00.000",
97+
"1970-01-01 00:00:00.010",
98+
"1970-01-01 00:00:00.020",
99+
"1970-01-01 00:00:00.030",
100+
"1970-01-01 00:00:00.040",
101+
"1970-01-01 00:00:00.050",
102+
"1970-01-01 00:00:00.060",
103+
"1970-01-01 00:00:00.070",
104+
"1970-01-01 00:00:00.080",
105+
"1970-01-01 00:00:00.090",
106+
"1970-01-01 00:00:00.100",
107+
"1970-01-01 00:00:00.110",
108+
"1970-01-01 00:00:00.120",
109+
"1970-01-01 00:00:00.130",
110+
"1970-01-01 00:00:00.140",
111+
"1970-01-01 00:00:00.150",
112+
"1970-01-01 00:00:00.160",
113+
"1970-01-01 00:00:00.170",
114+
"1970-01-01 00:00:00.180",
115+
"1970-01-01 00:00:00.190",
116+
"1970-01-01 00:00:00.200"
117+
]
118+
}
119+
],
120+
"layout": {
121+
"showlegend": false,
122+
"width": 800,
123+
"height": 800,
124+
"xaxis": {
125+
"rangebreaks": [
126+
{
127+
"bounds": [
128+
"1970-01-01 00:00:00.050",
129+
"1970-01-01 00:00:00.075"
130+
]
131+
},
132+
{
133+
"bounds": [
134+
"1970-01-01 00:00:00.120",
135+
"1970-01-01 00:00:00.180"
136+
]
137+
}
138+
],
139+
"domain": [
140+
0,
141+
0.48
142+
]
143+
},
144+
"xaxis2": {
145+
"rangebreaks": [
146+
{
147+
"bounds": [
148+
"1970-01-01 00:00:00.050",
149+
"1970-01-01 00:00:00.075"
150+
]
151+
},
152+
{
153+
"bounds": [
154+
"1970-01-01 00:00:00.120",
155+
"1970-01-01 00:00:00.180"
156+
]
157+
}
158+
],
159+
"autorange": "reversed",
160+
"anchor": "y2",
161+
"domain": [
162+
0.52,
163+
1
164+
]
165+
},
166+
"xaxis3": {
167+
"anchor": "y3",
168+
"domain": [
169+
0,
170+
0.48
171+
]
172+
},
173+
"xaxis4": {
174+
"anchor": "y4",
175+
"domain": [
176+
0.52,
177+
1
178+
]
179+
},
180+
"yaxis": {
181+
"domain": [
182+
0,
183+
0.48
184+
]
185+
},
186+
"yaxis2": {
187+
"anchor": "x2",
188+
"domain": [
189+
0.52,
190+
1
191+
]
192+
},
193+
"yaxis3": {
194+
"rangebreaks": [
195+
{
196+
"bounds": [
197+
"1970-01-01 00:00:00.050",
198+
"1970-01-01 00:00:00.075"
199+
]
200+
},
201+
{
202+
"bounds": [
203+
"1970-01-01 00:00:00.120",
204+
"1970-01-01 00:00:00.180"
205+
]
206+
}
207+
],
208+
"anchor": "x3",
209+
"domain": [
210+
0.52,
211+
1
212+
]
213+
},
214+
"yaxis4": {
215+
"rangebreaks": [
216+
{
217+
"bounds": [
218+
"1970-01-01 00:00:00.050",
219+
"1970-01-01 00:00:00.075"
220+
]
221+
},
222+
{
223+
"bounds": [
224+
"1970-01-01 00:00:00.120",
225+
"1970-01-01 00:00:00.180"
226+
]
227+
}
228+
],
229+
"autorange": "reversed",
230+
"anchor": "x4",
231+
"domain": [
232+
0,
233+
0.48
234+
]
235+
}
236+
}
237+
}

0 commit comments

Comments
 (0)