Skip to content

Commit 81a44ce

Browse files
committed
Add image test
* Added a mock the places shapes in lower, upper and subplot shape layers. * The shapes extend over several subplots to test whether the appropriate clip paths have been set.
1 parent a0e6a5c commit 81a44ce

File tree

2 files changed

+156
-0
lines changed

2 files changed

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

0 commit comments

Comments
 (0)