Skip to content

Commit f3842e0

Browse files
committed
test positioning of subtitle when title is mathjax
1 parent f2cbc23 commit f3842e0

File tree

6 files changed

+65
-3
lines changed

6 files changed

+65
-3
lines changed

.circleci/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ case $1 in
102102
;;
103103

104104
make-baselines-mathjax3)
105-
python3 test/image/make_baseline.py mathjax3 legend_mathjax_title_and_items mathjax parcats_grid_subplots table_latex_multitrace_scatter table_plain_birds table_wrapped_birds ternary-mathjax || EXIT_STATE=$?
105+
python3 test/image/make_baseline.py mathjax3 legend_mathjax_title_and_items mathjax parcats_grid_subplots table_latex_multitrace_scatter table_plain_birds table_wrapped_birds ternary-mathjax zz-ternary-mathjax-title-place-subtitle || EXIT_STATE=$?
106106
exit $EXIT_STATE
107107
;;
108108

39.2 KB
Loading
40.3 KB
Loading

test/image/compare_pixels_test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ if(mathjax3) {
8484
'table_latex_multitrace_scatter',
8585
'table_plain_birds',
8686
'table_wrapped_birds',
87-
'ternary-mathjax'
87+
'ternary-mathjax',
88+
'zz-ternary-mathjax-title-place-subtitle',
8889
];
8990
}
9091

test/image/make_baseline.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ if(mathjax3) {
6363
'table_latex_multitrace_scatter',
6464
'table_plain_birds',
6565
'table_wrapped_birds',
66-
'ternary-mathjax'
66+
'ternary-mathjax',
67+
'zz-ternary-mathjax-title-place-subtitle'
6768
];
6869
}
6970

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scatterternary",
5+
"mode": "markers",
6+
"a": [75],
7+
"b": [25],
8+
"c": [0],
9+
"text": ["point 1"],
10+
"marker": {
11+
"symbol": 100,
12+
"color": "#DB7365",
13+
"size": 14,
14+
"line": {
15+
"width": 2
16+
}
17+
}
18+
}
19+
],
20+
"layout": {
21+
"ternary": {
22+
"sum": 100,
23+
"aaxis": {
24+
"title": {
25+
"text": "$A^2$"
26+
},
27+
"showline": true,
28+
"showgrid": true
29+
},
30+
"baxis": {
31+
"title": {
32+
"text": "$B^2$"
33+
},
34+
"tickprefix": "$\\sqrt",
35+
"ticksuffix": "^2$",
36+
"showline": true,
37+
"showgrid": true
38+
},
39+
"caxis": {
40+
"title": {
41+
"text": "$C^2$"
42+
},
43+
"showline": true,
44+
"showgrid": true,
45+
"labelalias": {
46+
"20": "$(\\sqrt20)^2$",
47+
"60": "<i><b>Sixty<b><i>"
48+
}
49+
}
50+
},
51+
"width": 600,
52+
"height": 600,
53+
"title": {
54+
"subtitle": {
55+
"text": "Simple Ternary Plot with Markers"
56+
},
57+
"text": "$y = ax^2 + bx + c$"
58+
}
59+
}
60+
}

0 commit comments

Comments
 (0)