Skip to content

Commit 2ed1b02

Browse files
committed
using double dollar signs in mathjax mocks and update baselines
1 parent 0b3db23 commit 2ed1b02

10 files changed

+26
-26
lines changed
Loading

test/image/baselines/mathjax.png

2.83 KB
Loading
11 Bytes
Loading
-74 Bytes
Loading

test/image/mocks/legend_mathjax_title_and_items.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"layout": {
33
"legend": {
44
"title": {
5-
"text": "$\\varphi ={\\frac {1+{\\sqrt {5}}}{2}}=0.618$"
5+
"text": "$$\\varphi ={\\frac {1+{\\sqrt {5}}}{2}}=0.618$$"
66
},
77
"orientation": "v",
88
"bordercolor": "gray",
@@ -20,32 +20,32 @@
2020
},
2121
"data": [
2222
{
23-
"name": "${\\frac {1}{2}}=0.5$",
23+
"name": "$${\\frac {1}{2}}=0.5$$",
2424
"x": [1, 2],
2525
"y": [0.5, 0.5]
2626
},
2727
{
28-
"name": "${\\frac {2}{3}}=0.6666$",
28+
"name": "$${\\frac {2}{3}}=0.6666$$",
2929
"x": [2, 3],
3030
"y": [0.6666, 0.6666]
3131
},
3232
{
33-
"name": "${\\frac {3}{5}}=0.6$",
33+
"name": "$${\\frac {3}{5}}=0.6$$",
3434
"x": [3, 5],
3535
"y": [0.6, 0.6]
3636
},
3737
{
38-
"name": "${\\frac {5}{8}}=0.6125$",
38+
"name": "$${\\frac {5}{8}}=0.6125$$",
3939
"x": [5, 8],
4040
"y": [0.6125, 0.6125]
4141
},
4242
{
43-
"name": "${\\frac {8}{13}}=0.6153$",
43+
"name": "$${\\frac {8}{13}}=0.6153$$",
4444
"x": [8, 13],
4545
"y": [0.6153, 0.6153]
4646
},
4747
{
48-
"name": "${\\frac {13}{21}}=0.619$",
48+
"name": "$${\\frac {13}{21}}=0.619$$",
4949
"x": [13, 21],
5050
"y": [0.619, 0.619]
5151
}]

test/image/mocks/mathjax.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
"y": [0, 1.414],
55
"text": ["Hx+yH", "H\\sqrt{2}H"],
66
"mode": "text+markers",
7-
"name": "$E^2=m^2c^4+p^2c^2$"
7+
"name": "$$E^2=m^2c^4+p^2c^2$$"
88
}, {
99
"x": [0, 1],
1010
"y": [1.4, 0.1],
1111
"text": ["H1.400 \\pm 0.023H", "H0.100 \\pm 0.002H"],
1212
"textposition": "auto",
1313
"type": "bar",
14-
"name": "$x=\\frac{-b \\pm \\sqrt{b^2-4ac}}{2a}$"
14+
"name": "$$x=\\frac{-b \\pm \\sqrt{b^2-4ac}}{2a}$$"
1515
}, {
1616
"type": "pie",
1717
"values": [1, 9],
18-
"labels": ["$\\frac{1}{10}=10\\%$", "$\\frac{9}{10}=90\\%$"],
18+
"labels": ["$$\\frac{1}{10}=10\\%$$", "$$\\frac{9}{10}=90\\%$$"],
1919
"textinfo": "label",
2020
"domain": {"x": [0.3, 0.75], "y": [0.55, 1]}
2121
}, {
@@ -26,25 +26,25 @@
2626
"colorbar": {"title": {"text": "He^{i\\pi}=-1H"}, "y": 0.225, "len": 0.45}
2727
}],
2828
"layout": {
29-
"yaxis":{"domain": [0, 0.45], "title": {"text": "$y=\\sin{2 \\theta}$"}},
29+
"yaxis":{"domain": [0, 0.45], "title": {"text": "$$y=\\sin{2 \\theta}$$"}},
3030
"xaxis":{
3131
"domain": [0, 0.45],
32-
"title": {"text": "$x=\\int_0^a a^2+1$"},
32+
"title": {"text": "$$x=\\int_0^a a^2+1$$"},
3333
"tickvals": [0, 1],
34-
"ticktext": ["$\\frac{0}{100}$", "$\\frac{100}{100}$"]
34+
"ticktext": ["$$\\frac{0}{100}$$", "$$\\frac{100}{100}$$"]
3535
},
3636
"xaxis2": {"domain": [0.85, 1], "anchor": "y2"},
3737
"yaxis2": {
3838
"domain": [0, 0.45],
3939
"anchor": "x2",
4040
"tickvals": [0, 1],
4141
"ticktext": ["Ha+b+c+dH", "He+f+g+hH"],
42-
"title": {"text": "$(||01\\rangle+|10\\rangle)/\\sqrt2$"}
42+
"title": {"text": "$$(||01\\rangle+|10\\rangle)/\\sqrt2$$"}
4343
},
4444
"height":500,
4545
"width":800,
4646
"margin": {"r": 250},
47-
"title": {"text": "$i\\hbar\\frac{d\\Psi}{dt}=-[V-\\frac{-\\hbar^2}{2m}\\nabla^2]\\Psi$"},
47+
"title": {"text": "$$i\\hbar\\frac{d\\Psi}{dt}=-[V-\\frac{-\\hbar^2}{2m}\\nabla^2]\\Psi$$"},
4848
"annotations":[
4949
{
5050
"text": "H is substituted for $<br>where we would like<br>math but do not yet<br>fully support it",
@@ -53,23 +53,23 @@
5353
"showarrow": false
5454
},
5555
{
56-
"text":"$(top,left)$","showarrow":false,"xref":"paper","yref":"paper",
56+
"text":"$$(top,left)$$","showarrow":false,"xref":"paper","yref":"paper",
5757
"xanchor":"left","yanchor":"top","x":0,"y":1,"textangle":10,
5858
"bordercolor":"#0c0","borderpad":3,"bgcolor":"#dfd"
5959
},
6060
{
61-
"text":"$(right,bottom)$","xref":"paper","yref":"paper",
61+
"text":"$$(right,bottom)$$","xref":"paper","yref":"paper",
6262
"xanchor":"right","yanchor":"bottom","x":0.2,"y":0.7,"ax":-20,"ay":-20,
6363
"textangle":-30,"bordercolor":"#0c0","borderpad":3,"bgcolor":"#dfd",
6464
"opacity":0.5
6565
},
66-
{"text":"$not-visible$", "visible": false},
66+
{"text":"$$not-visible$$", "visible": false},
6767
{
68-
"text":"$^{29}Si$","x":0.7,"y":0.7,"showarrow":false,
68+
"text":"$$^{29}Si$$","x":0.7,"y":0.7,"showarrow":false,
6969
"xanchor":"right","yanchor":"top"
7070
},
7171
{
72-
"text":"$^{17}O$","x":0.7,"y":0.7,"ax":15,"ay":-15,
72+
"text":"$$^{17}O$$","x":0.7,"y":0.7,"ax":15,"ay":-15,
7373
"xanchor":"left","yanchor":"bottom"
7474
}
7575
]

test/image/mocks/parcats_grid_subplots.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
{"label": "Two",
3232
"values": ["A", "B", "A", "B", "C", "C", "A", "B", "C"],
3333
"categoryarray": ["A", "B", "C"],
34-
"ticktext": ["$A^2$", "<b>Bold</b><br>and<br><i>Italic</i>", "<a href='http://www.google.com'>Link</a>"]
34+
"ticktext": ["$$A^2$$", "<b>Bold</b><br>and<br><i>Italic</i>", "<a href='http://www.google.com'>Link</a>"]
3535
},
3636
{"label": "Three", "values": [11, 11, 11, 11, 11, 11, 11, 11, 11]}]
3737
},

test/image/mocks/table_plain_birds.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
"height": 30,
2323

24-
"values": [["<b>#</b>", ""], ["<b>Species</b>", ""], ["Latitude", "$\\phi °$"], ["Longitude", "$\\lambda °$"], ["Exposure", ""], ["Condition", "<i>Live / Dead</i>"], ["Date", "<i>yyyy-mm-dd</i>"]],
24+
"values": [["<b>#</b>", ""], ["<b>Species</b>", ""], ["Latitude", "$$\\phi °$$"], ["Longitude", "$$\\lambda °$$"], ["Exposure", ""], ["Condition", "<i>Live / Dead</i>"], ["Date", "<i>yyyy-mm-dd</i>"]],
2525

2626
"align": ["right", "left", "right", "right", "left", "left", "left"],
2727

test/image/mocks/table_wrapped_birds.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
"height": 30,
2323

24-
"values": [["<b>#</b>", ""], ["<b>Species</b>", ""], ["Latitude", "$\\phi °$"], ["Longitude", "$\\lambda °$"], ["Exposure", ""], ["Condition", "<i>Live / Dead</i>"], ["Date", "<i>yyyy-mm-dd</i>"]],
24+
"values": [["<b>#</b>", ""], ["<b>Species</b>", ""], ["Latitude", "$$\\phi °$$"], ["Longitude", "$$\\lambda °$$"], ["Exposure", ""], ["Condition", "<i>Live / Dead</i>"], ["Date", "<i>yyyy-mm-dd</i>"]],
2525

2626
"align": ["right", "left", "right", "right", "left", "left", "left"],
2727

test/image/mocks/ternary-mathjax.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@
2222
"sum": 100,
2323
"aaxis": {
2424
"title": {
25-
"text": "$A^2$"
25+
"text": "$$A^2$$"
2626
},
2727
"showline": true,
2828
"showgrid": true
2929
},
3030
"baxis": {
3131
"title": {
32-
"text": "$B^2$"
32+
"text": "$$B^2$$"
3333
},
3434
"showline": true,
3535
"showgrid": true
3636
},
3737
"caxis": {
3838
"title": {
39-
"text": "$C^2$"
39+
"text": "$$C^2$$"
4040
},
4141
"showline": true,
4242
"showgrid": true

0 commit comments

Comments
 (0)