Skip to content

Commit fd0b9fb

Browse files
committed
add test for various contour labelfont sizes
1 parent b5c85b1 commit fd0b9fb

File tree

2 files changed

+106
-0
lines changed

2 files changed

+106
-0
lines changed
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
{
2+
"data": [
3+
{
4+
"type": "contour",
5+
"x": [1, 2, 3, 4],
6+
"y": [1, 2, 3, 4],
7+
"z": [
8+
[-1, -2, -4, -8],
9+
[-2, -4, -8, -1],
10+
[-4, -8, -1, -2],
11+
[-8, -1, -2, -4]
12+
],
13+
"contours": {"showlabels": true, "labelfont": {"size": 4}},
14+
"showscale": false
15+
},
16+
{
17+
"type": "contour",
18+
"x": [1, 2, 3, 4],
19+
"y": [1, 2, 3, 4],
20+
"z": [
21+
[-1, -2, -4, -8],
22+
[-2, -4, -8, -1],
23+
[-4, -8, -1, -2],
24+
[-8, -1, -2, -4]
25+
],
26+
"contours": {"showlabels": true, "labelfont": {"size": 8}},
27+
"showscale": false,
28+
"xaxis": "x2",
29+
"yaxis": "y2"
30+
},
31+
{
32+
"type": "contour",
33+
"x": [1, 2, 3, 4],
34+
"y": [1, 2, 3, 4],
35+
"z": [
36+
[-1, -2, -4, -8],
37+
[-2, -4, -8, -1],
38+
[-4, -8, -1, -2],
39+
[-8, -1, -2, -4]
40+
],
41+
"contours": {"showlabels": true, "labelfont": {"size": 12}},
42+
"showscale": false,
43+
"xaxis": "x3",
44+
"yaxis": "y3"
45+
},
46+
{
47+
"type": "contour",
48+
"x": [1, 2, 3, 4],
49+
"y": [1, 2, 3, 4],
50+
"z": [
51+
[-1, -2, -4, -8],
52+
[-2, -4, -8, -1],
53+
[-4, -8, -1, -2],
54+
[-8, -1, -2, -4]
55+
],
56+
"contours": {"showlabels": true, "labelfont": {"size": 16}},
57+
"showscale": false,
58+
"xaxis": "x4",
59+
"yaxis": "y4"
60+
},
61+
{
62+
"type": "contour",
63+
"x": [1, 2, 3, 4],
64+
"y": [1, 2, 3, 4],
65+
"z": [
66+
[-1, -2, -4, -8],
67+
[-2, -4, -8, -1],
68+
[-4, -8, -1, -2],
69+
[-8, -1, -2, -4]
70+
],
71+
"contours": {"showlabels": true, "labelfont": {"size": 20}},
72+
"showscale": false,
73+
"xaxis": "x5",
74+
"yaxis": "y5"
75+
},
76+
{
77+
"type": "contour",
78+
"x": [1, 2, 3, 4],
79+
"y": [1, 2, 3, 4],
80+
"z": [
81+
[-1, -2, -4, -8],
82+
[-2, -4, -8, -1],
83+
[-4, -8, -1, -2],
84+
[-8, -1, -2, -4]
85+
],
86+
"contours": {"showlabels": true, "labelfont": {"size": 24}},
87+
"showscale": false,
88+
"xaxis": "x6",
89+
"yaxis": "y6"
90+
}
91+
],
92+
"layout": {
93+
"grid": {"rows": 3, "columns": 2, "pattern": "independent"},
94+
95+
"template": {
96+
"data": {
97+
"contour": [{
98+
"hoverlabel": {"namelength": -1}
99+
}]
100+
}
101+
},
102+
103+
"width": 800,
104+
"height": 1200
105+
}
106+
}

0 commit comments

Comments
 (0)