Skip to content

Commit 4287213

Browse files
committed
Add shapes test mock
1 parent 1e300c4 commit 4287213

File tree

1 file changed

+149
-0
lines changed

1 file changed

+149
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scattergl",
5+
"y": [
6+
1,
7+
2,
8+
1,
9+
0,
10+
-1,
11+
2,
12+
3,
13+
5
14+
]
15+
},
16+
{
17+
"type": "scattergl",
18+
"xaxis": "x2",
19+
"y": [
20+
7.071067811865475,
21+
10,
22+
7.071067811865475,
23+
0,
24+
-7.071067811865475,
25+
10,
26+
7.0710678118654755,
27+
-7.071067811865475
28+
]
29+
},
30+
{
31+
"type": "scattergl",
32+
"y": [
33+
7.0710678118654755,
34+
6.123233995736766e-16,
35+
7.0710678118654755,
36+
10,
37+
7.0710678118654755,
38+
6.123233995736766e-16,
39+
-7.071067811865475,
40+
-7.071067811865477
41+
],
42+
"yaxis": "y2"
43+
},
44+
{
45+
"type": "scattergl",
46+
"xaxis": "x2",
47+
"y": [
48+
2,
49+
1.6666666666666667,
50+
2,
51+
2.5,
52+
3.3333333333333335,
53+
1.6666666666666667,
54+
1.4285714285714286,
55+
1.1111111111111112
56+
],
57+
"yaxis": "y2"
58+
}
59+
],
60+
"layout": {
61+
"dragmode": "pan",
62+
"shapes": [
63+
{
64+
"fillcolor": "#c7eae5",
65+
"layer": "below",
66+
"type": "rect",
67+
"x0": 3.5,
68+
"x1": 4.5,
69+
"xref": "x",
70+
"y0": 0,
71+
"y1": 1,
72+
"yref": "paper"
73+
},
74+
{
75+
"fillcolor": "#c7eae5",
76+
"layer": "above",
77+
"opacity": 0.5,
78+
"type": "rect",
79+
"x0": 5.5,
80+
"x1": 6.5,
81+
"xref": "x2",
82+
"y0": 0,
83+
"y1": 1,
84+
"yref": "paper"
85+
},
86+
{ "visible": false },
87+
{
88+
"fillcolor": "#f6e8c3",
89+
"layer": "below",
90+
"type": "rect",
91+
"x0": 0,
92+
"x1": 1,
93+
"xref": "paper",
94+
"y0": 0,
95+
"y1": 3,
96+
"yref": "y"
97+
},
98+
{
99+
"fillcolor": "#f6e8c3",
100+
"layer": "above",
101+
"opacity": 0.5,
102+
"type": "rect",
103+
"x0": 0,
104+
"x1": 1,
105+
"xref": "paper",
106+
"y0": 1,
107+
"y1": 4,
108+
"yref": "y2"
109+
},
110+
{
111+
"fillcolor": "#d3d3d3",
112+
"layer": "below",
113+
"type": "rect",
114+
"x0": 0.3,
115+
"x1": 0.7,
116+
"xref": "paper",
117+
"y0": 0.3,
118+
"y1": 0.7,
119+
"yref": "paper"
120+
}
121+
],
122+
"showlegend": false,
123+
"title": "shape shading a region",
124+
"xaxis": {
125+
"domain": [
126+
0,
127+
0.45
128+
]
129+
},
130+
"xaxis2": {
131+
"domain": [
132+
0.55,
133+
1
134+
]
135+
},
136+
"yaxis": {
137+
"domain": [
138+
0,
139+
0.45
140+
]
141+
},
142+
"yaxis2": {
143+
"domain": [
144+
0.55,
145+
1
146+
]
147+
}
148+
}
149+
}

0 commit comments

Comments
 (0)