Skip to content

Commit 7498fe6

Browse files
committed
test: add mocks for 'scattergeo' connectgaps and fill
1 parent 8d40b38 commit 7498fe6

File tree

4 files changed

+168
-0
lines changed

4 files changed

+168
-0
lines changed
47.2 KB
Loading

test/image/baselines/geo_fill.png

28.8 KB
Loading

test/image/mocks/geo_connectgaps.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scattergeo",
5+
"mode": "lines",
6+
"lon": [
7+
-50,
8+
-50,
9+
null,
10+
"50",
11+
"50"
12+
],
13+
"lat": [
14+
10,
15+
50,
16+
null,
17+
"10",
18+
"50"
19+
],
20+
"line": {
21+
"width": 2
22+
},
23+
"name": "connectgaps false"
24+
},
25+
{
26+
"type": "scattergeo",
27+
"mode": "lines",
28+
"lon": [
29+
-50,
30+
-50,
31+
null,
32+
"50",
33+
"50"
34+
],
35+
"lat": [
36+
-10,
37+
-50,
38+
null,
39+
"-10",
40+
"-50"
41+
],
42+
"line": {
43+
"width": 5
44+
},
45+
"connectgaps": true,
46+
"name": "connectgaps true"
47+
}
48+
],
49+
"layout": {
50+
"geo": {
51+
"projection": {
52+
"type": "eckert4"
53+
}
54+
},
55+
"height": 450,
56+
"width": 1100,
57+
"autosize": true
58+
}
59+
}

test/image/mocks/geo_fill.json

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scattergeo",
5+
"mode": "lines",
6+
"fill": "toself",
7+
"lon": [
8+
-67.13734351262877,
9+
-66.96466,
10+
-68.03252,
11+
-69.06,
12+
-70.11617,
13+
-70.64573401557249,
14+
-70.75102474636725,
15+
-70.79761105007827,
16+
-70.98176001655037,
17+
-70.94416541205806,
18+
-71.08482,
19+
-70.6600225491012,
20+
-70.30495378282376,
21+
-70.00014034695016,
22+
-69.23708614772835,
23+
-68.90478084987546,
24+
-68.23430497910454,
25+
-67.79035274928509,
26+
-67.79141211614706,
27+
-67.13734351262877,
28+
null,
29+
-76,
30+
-76,
31+
-74,
32+
-74,
33+
-76
34+
],
35+
"lat": [
36+
45.137451890638886,
37+
44.8097,
38+
44.3252,
39+
43.98,
40+
43.68405,
41+
43.090083319667144,
42+
43.08003225358635,
43+
43.21973948828747,
44+
43.36789581966826,
45+
43.46633942318431,
46+
45.3052400000002,
47+
45.46022288673396,
48+
45.914794623389355,
49+
46.69317088478567,
50+
47.44777598732787,
51+
47.184794623394396,
52+
47.35462921812177,
53+
47.066248887716995,
54+
45.702585354182816,
55+
45.137451890638886,
56+
null,
57+
44,
58+
46,
59+
46,
60+
44,
61+
44
62+
],
63+
"line": {
64+
"width": 6,
65+
"color": "#756bb1"
66+
},
67+
"fillcolor": "#d3d3d3"
68+
},
69+
{
70+
"type": "scattergeo",
71+
"fill": "toself",
72+
"lon": [
73+
-75,
74+
-77,
75+
-77,
76+
-75,
77+
-75
78+
],
79+
"lat": [
80+
47,
81+
47,
82+
49,
83+
49,
84+
47
85+
],
86+
"marker": {
87+
"size": 20
88+
}
89+
}
90+
],
91+
"layout": {
92+
"geo": {
93+
"projection": {
94+
"type": "natural earth"
95+
},
96+
"lonaxis": {
97+
"range": [-80, -65]
98+
},
99+
"lataxis": {
100+
"range": [42, 51]
101+
},
102+
"showland": true
103+
},
104+
"showlegend": false,
105+
"height": 450,
106+
"width": 1100,
107+
"autosize": true
108+
}
109+
}

0 commit comments

Comments
 (0)