Skip to content

Commit 1c02804

Browse files
committed
test font options in scattergl and scatter3d
1 parent 9a92474 commit 1c02804

File tree

5 files changed

+118
-14
lines changed

5 files changed

+118
-14
lines changed
Loading
Loading
Loading
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scattergl",
5+
"hovertemplate": "Difficult -0.123456789 | %{text}",
6+
"texttemplate": "Difficult -0.123456789 | %{text}",
7+
"mode": "text",
8+
"text": [
9+
"normal",
10+
"small-caps",
11+
"italic",
12+
"italic small-caps",
13+
"bold",
14+
"bold small-caps",
15+
"bold italic",
16+
"bold italic small-caps"
17+
],
18+
"textfont": {
19+
"family": "Inter",
20+
"size": 16,
21+
"weight": [
22+
"normal",
23+
"normal",
24+
"normal",
25+
"normal",
26+
"bold",
27+
"bold",
28+
"bold",
29+
"bold"
30+
],
31+
"style": [
32+
"normal",
33+
"normal",
34+
"italic",
35+
"italic",
36+
"normal",
37+
"normal",
38+
"italic",
39+
"italic"
40+
],
41+
"variant": [
42+
"normal",
43+
"small-caps",
44+
"normal",
45+
"small-caps",
46+
"normal",
47+
"small-caps",
48+
"normal",
49+
"small-caps"
50+
]
51+
},
52+
"x": [0, 0, 0, 0, 0, 0, 0, 0],
53+
"y": [0, 1, 2, 3, 4, 5, 6, 7]
54+
}
55+
],
56+
"layout": {
57+
"showlegend": false,
58+
"margin": {
59+
"l": 0,
60+
"r": 0,
61+
"t": 0,
62+
"b": 0
63+
},
64+
"xaxis": {
65+
"range": [-1, 1],
66+
"showticklabels": false,
67+
"showgrid": false,
68+
"zeroline": false
69+
},
70+
"yaxis": {
71+
"range": [7.5, -0.5],
72+
"showticklabels": false,
73+
"showgrid": false,
74+
"zeroline": false
75+
},
76+
"width": 400,
77+
"height": 400,
78+
"hovermode": "closest"
79+
}
80+
}

test/image/mocks/zz-gl3d_font-variant-scatter.json

Lines changed: 38 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,51 @@
77
"mode": "text",
88
"text": [
99
"normal",
10-
"unicase",
1110
"small-caps",
12-
"all-small-caps",
13-
"petite-caps",
14-
"all-petite-caps"
11+
"italic",
12+
"italic small-caps",
13+
"bold",
14+
"bold small-caps",
15+
"bold italic",
16+
"bold italic small-caps"
1517
],
1618
"textfont": {
1719
"family": "Inter",
1820
"size": 16,
21+
"weight": [
22+
"normal",
23+
"normal",
24+
"normal",
25+
"normal",
26+
"bold",
27+
"bold",
28+
"bold",
29+
"bold"
30+
],
31+
"style": [
32+
"normal",
33+
"normal",
34+
"italic",
35+
"italic",
36+
"normal",
37+
"normal",
38+
"italic",
39+
"italic"
40+
],
1941
"variant": [
2042
"normal",
21-
"unicase",
2243
"small-caps",
23-
"all-small-caps",
24-
"petite-caps",
25-
"all-petite-caps"
44+
"normal",
45+
"small-caps",
46+
"normal",
47+
"small-caps",
48+
"normal",
49+
"small-caps"
2650
]
2751
},
28-
"z": [0, 0, 0, 0, 0, 0],
29-
"x": [0, 0, 0, 0, 0, 0],
30-
"y": [-2.5, -1.5, -0.5, 0.5, 1.5, 2.5]
52+
"z": [0, 0, 0, 0, 0, 0, 0, 0],
53+
"x": [0, 0, 0, 0, 0, 0, 0, 0],
54+
"y": [-3.5, -2.5, -1.5, -0.5, 0.5, 1.5, 2.5, 3.5]
3155
}
3256
],
3357
"layout": {
@@ -55,9 +79,9 @@
5579
"zeroline": false
5680
},
5781
"aspectratio": {
58-
"x": 1,
59-
"y": 1,
60-
"z": 1
82+
"x": 1.5,
83+
"y": 1.5,
84+
"z": 1.5
6185
},
6286
"camera": {
6387
"projection": {

0 commit comments

Comments
 (0)