Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a0901bd

Browse filesBrowse files
committed
improve image test
1 parent 07cd536 commit a0901bd
Copy full SHA for a0901bd

10 files changed

+360
-4
lines changed
25.8 KB
Loading
24.4 KB
Loading
Loading
Loading
Loading
+38Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"data": [
3+
{
4+
"x": [-1, 0, 1],
5+
"y": [0, 0, 0],
6+
"mode": "markers",
7+
"marker": {
8+
"size": 100,
9+
"color": [0, 50, 100],
10+
"colorscale": "Reds",
11+
"showscale": true,
12+
"colorbar": {
13+
"orientation": "h",
14+
"ticks": "outside",
15+
"ticklen": 10,
16+
"bordercolor": "gray",
17+
"title": {
18+
"text": "Colorbar<br>title",
19+
"font": {
20+
"size": 16
21+
}
22+
}
23+
}
24+
}
25+
}
26+
],
27+
"layout": {
28+
"width": 600,
29+
"height": 400,
30+
"plot_bgcolor": "lightblue",
31+
"title": {
32+
"text": "Graph title",
33+
"font": {
34+
"size": 24
35+
}
36+
}
37+
}
38+
}
+44Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"data": [
3+
{
4+
"x": [-1, 0, 1],
5+
"y": [0, 0, 0],
6+
"mode": "markers",
7+
"marker": {
8+
"size": 100,
9+
"color": [0, 50, 100],
10+
"colorscale": "Reds",
11+
"showscale": true,
12+
"colorbar": {
13+
"orientation": "h",
14+
"xanchor": "left",
15+
"yanchor": "top",
16+
"y": 1,
17+
"x": 0,
18+
"len": 0.5,
19+
"thickness": 10,
20+
"ticks": "outside",
21+
"ticklen": 10,
22+
"title": {
23+
"side": "right",
24+
"text": "Colorbar<br>title",
25+
"font": {
26+
"size": 16
27+
}
28+
}
29+
}
30+
}
31+
}
32+
],
33+
"layout": {
34+
"width": 600,
35+
"height": 400,
36+
"plot_bgcolor": "lightblue",
37+
"title": {
38+
"text": "Graph title",
39+
"font": {
40+
"size": 24
41+
}
42+
}
43+
}
44+
}

‎test/image/mocks/h-colorbar_geo_multiple-usa-choropleths.json

Copy file name to clipboardExpand all lines: test/image/mocks/h-colorbar_geo_multiple-usa-choropleths.json
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
],
3636
"colorbar": {
3737
"orientation": "h",
38-
"borderwidth": 1,
3938
"xanchor": "left",
4039
"yanchor": "top",
4140
"tick0": 0,
@@ -122,7 +121,6 @@
122121
],
123122
"colorbar": {
124123
"orientation": "h",
125-
"borderwidth": 1,
126124
"xanchor": "left",
127125
"yanchor": "top",
128126
"tick0": 10,
@@ -184,7 +182,6 @@
184182
],
185183
"colorbar": {
186184
"orientation": "h",
187-
"borderwidth": 1,
188185
"xanchor": "left",
189186
"yanchor": "top",
190187
"tick0": 100,
@@ -222,7 +219,6 @@
222219
],
223220
"colorbar": {
224221
"orientation": "h",
225-
"borderwidth": 1,
226222
"xanchor": "left",
227223
"yanchor": "top",
228224
"tick0": 1000,
+253Lines changed: 253 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,253 @@
1+
{
2+
"data": [
3+
{
4+
"zmax": 10,
5+
"colorscale": [
6+
[
7+
0,
8+
"#ffffcc"
9+
],
10+
[
11+
1,
12+
"#ffffcc"
13+
]
14+
],
15+
"text": [
16+
"1.0CO",
17+
"2.0OR",
18+
"3.0ID",
19+
"3.0KY",
20+
"3.0MT",
21+
"3.0PA",
22+
"5.0MD",
23+
"6.0TN"
24+
],
25+
"zmin": 0,
26+
"locations": [
27+
"CO",
28+
"OR",
29+
"ID",
30+
"KY",
31+
"MT",
32+
"PA",
33+
"MD",
34+
"TN"
35+
],
36+
"colorbar": {
37+
"orientation": "h",
38+
"borderwidth": 1,
39+
"xanchor": "left",
40+
"yanchor": "top",
41+
"tick0": 0,
42+
"y": 0.25,
43+
"dtick": 10,
44+
"len": 0.15, "thickness": 10,
45+
"x": 1
46+
},
47+
"locationmode": "USA-states",
48+
"z": [
49+
1,
50+
2,
51+
3,
52+
3,
53+
3,
54+
3,
55+
5,
56+
6
57+
],
58+
"type": "choropleth"
59+
},
60+
{
61+
"zmax": 100,
62+
"colorscale": [
63+
[
64+
0,
65+
"#addd8e"
66+
],
67+
[
68+
1,
69+
"#addd8e"
70+
]
71+
],
72+
"text": [
73+
"11.0IL",
74+
"12.0CA",
75+
"15.0DE",
76+
"17.0SD",
77+
"19.0IN",
78+
"20.0MS",
79+
"23.0NH",
80+
"24.0WY",
81+
"26.0AR",
82+
"27.0LA",
83+
"27.0NM",
84+
"36.0AZ",
85+
"36.0NE",
86+
"42.0NC",
87+
"42.0SC",
88+
"52.0OH",
89+
"52.0UT",
90+
"55.0AL",
91+
"56.0GA",
92+
"61.0WA",
93+
"71.0NV",
94+
"84.0MO",
95+
"89.0FL"
96+
],
97+
"zmin": 10,
98+
"locations": [
99+
"IL",
100+
"CA",
101+
"DE",
102+
"SD",
103+
"IN",
104+
"MS",
105+
"NH",
106+
"WY",
107+
"AR",
108+
"LA",
109+
"NM",
110+
"AZ",
111+
"NE",
112+
"NC",
113+
"SC",
114+
"OH",
115+
"UT",
116+
"AL",
117+
"GA",
118+
"WA",
119+
"NV",
120+
"MO",
121+
"FL"
122+
],
123+
"colorbar": {
124+
"orientation": "h",
125+
"borderwidth": 1,
126+
"xanchor": "left",
127+
"yanchor": "top",
128+
"tick0": 10,
129+
"y": 0.5,
130+
"dtick": 90,
131+
"len": 0.15, "thickness": 10,
132+
"x": 1
133+
},
134+
"locationmode": "USA-states",
135+
"z": [
136+
11,
137+
12,
138+
15,
139+
17,
140+
19,
141+
20,
142+
23,
143+
24,
144+
26,
145+
27,
146+
27,
147+
36,
148+
36,
149+
42,
150+
42,
151+
52,
152+
52,
153+
55,
154+
56,
155+
61,
156+
71,
157+
84,
158+
89
159+
],
160+
"type": "choropleth"
161+
},
162+
{
163+
"zmax": 1000,
164+
"colorscale": [
165+
[
166+
0,
167+
"#78c679"
168+
],
169+
[
170+
1,
171+
"#78c679"
172+
]
173+
],
174+
"text": [
175+
"109.0VA",
176+
"112.0OK",
177+
"129.0CT"
178+
],
179+
"zmin": 100,
180+
"locations": [
181+
"VA",
182+
"OK",
183+
"CT"
184+
],
185+
"colorbar": {
186+
"orientation": "h",
187+
"borderwidth": 1,
188+
"xanchor": "left",
189+
"yanchor": "top",
190+
"tick0": 100,
191+
"y": 0.75,
192+
"dtick": 900,
193+
"len": 0.15, "thickness": 10,
194+
"x": 1
195+
},
196+
"locationmode": "USA-states",
197+
"z": [
198+
109,
199+
112,
200+
129
201+
],
202+
"type": "choropleth"
203+
},
204+
{
205+
"zmax": 1500,
206+
"colorscale": [
207+
[
208+
0,
209+
"#31a354"
210+
],
211+
[
212+
1,
213+
"#31a354"
214+
]
215+
],
216+
"text": [
217+
"1281.0TX"
218+
],
219+
"zmin": 1000,
220+
"locations": [
221+
"TX"
222+
],
223+
"colorbar": {
224+
"orientation": "h",
225+
"borderwidth": 1,
226+
"xanchor": "left",
227+
"yanchor": "top",
228+
"tick0": 1000,
229+
"y": 1,
230+
"dtick": 500,
231+
"len": 0.15, "thickness": 10,
232+
"x": 1
233+
},
234+
"locationmode": "USA-states",
235+
"z": [
236+
1281
237+
],
238+
"type": "choropleth"
239+
}
240+
],
241+
"layout": {
242+
"paper_bgcolor": "lightgray",
243+
"width": 600,
244+
"height": 400,
245+
"title": {"text": "Executions by U.S. State Since 1819"},
246+
"geo": {
247+
"scope": "usa",
248+
"projection": {
249+
"type": "albers usa"
250+
}
251+
}
252+
}
253+
}
+25Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"data": [
3+
{
4+
"type": "contour",
5+
"z": [
6+
["0", "2e6"],
7+
["2e6", "3e7"]
8+
],
9+
"colorbar": {
10+
"borderwidth": 1,
11+
"orientation": "h",
12+
"tickformat": ",.1f",
13+
"tickprefix": "*** ",
14+
"showtickprefix": "first",
15+
"ticksuffix": "",
16+
"showticksuffix": "last"
17+
}
18+
}
19+
],
20+
"layout": {
21+
"width": 500,
22+
"height": 400,
23+
"title": {"text": "colorbar tickformat"}
24+
}
25+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.