Skip to content

Commit

Permalink
using double dollar signs in mathjax mocks and update baselines
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Feb 18, 2021
1 parent 0b3db23 commit 2ed1b02
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 26 deletions.
Binary file modified test/image/baselines/legend_mathjax_title_and_items.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/image/baselines/mathjax.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/image/baselines/parcats_grid_subplots.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/image/baselines/ternary-mathjax.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions test/image/mocks/legend_mathjax_title_and_items.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"layout": {
"legend": {
"title": {
"text": "$\\varphi ={\\frac {1+{\\sqrt {5}}}{2}}=0.618$"
"text": "$$\\varphi ={\\frac {1+{\\sqrt {5}}}{2}}=0.618$$"
},
"orientation": "v",
"bordercolor": "gray",
Expand All @@ -20,32 +20,32 @@
},
"data": [
{
"name": "${\\frac {1}{2}}=0.5$",
"name": "$${\\frac {1}{2}}=0.5$$",
"x": [1, 2],
"y": [0.5, 0.5]
},
{
"name": "${\\frac {2}{3}}=0.6666$",
"name": "$${\\frac {2}{3}}=0.6666$$",
"x": [2, 3],
"y": [0.6666, 0.6666]
},
{
"name": "${\\frac {3}{5}}=0.6$",
"name": "$${\\frac {3}{5}}=0.6$$",
"x": [3, 5],
"y": [0.6, 0.6]
},
{
"name": "${\\frac {5}{8}}=0.6125$",
"name": "$${\\frac {5}{8}}=0.6125$$",
"x": [5, 8],
"y": [0.6125, 0.6125]
},
{
"name": "${\\frac {8}{13}}=0.6153$",
"name": "$${\\frac {8}{13}}=0.6153$$",
"x": [8, 13],
"y": [0.6153, 0.6153]
},
{
"name": "${\\frac {13}{21}}=0.619$",
"name": "$${\\frac {13}{21}}=0.619$$",
"x": [13, 21],
"y": [0.619, 0.619]
}]
Expand Down
26 changes: 13 additions & 13 deletions test/image/mocks/mathjax.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
"y": [0, 1.414],
"text": ["Hx+yH", "H\\sqrt{2}H"],
"mode": "text+markers",
"name": "$E^2=m^2c^4+p^2c^2$"
"name": "$$E^2=m^2c^4+p^2c^2$$"
}, {
"x": [0, 1],
"y": [1.4, 0.1],
"text": ["H1.400 \\pm 0.023H", "H0.100 \\pm 0.002H"],
"textposition": "auto",
"type": "bar",
"name": "$x=\\frac{-b \\pm \\sqrt{b^2-4ac}}{2a}$"
"name": "$$x=\\frac{-b \\pm \\sqrt{b^2-4ac}}{2a}$$"
}, {
"type": "pie",
"values": [1, 9],
"labels": ["$\\frac{1}{10}=10\\%$", "$\\frac{9}{10}=90\\%$"],
"labels": ["$$\\frac{1}{10}=10\\%$$", "$$\\frac{9}{10}=90\\%$$"],
"textinfo": "label",
"domain": {"x": [0.3, 0.75], "y": [0.55, 1]}
}, {
Expand All @@ -26,25 +26,25 @@
"colorbar": {"title": {"text": "He^{i\\pi}=-1H"}, "y": 0.225, "len": 0.45}
}],
"layout": {
"yaxis":{"domain": [0, 0.45], "title": {"text": "$y=\\sin{2 \\theta}$"}},
"yaxis":{"domain": [0, 0.45], "title": {"text": "$$y=\\sin{2 \\theta}$$"}},
"xaxis":{
"domain": [0, 0.45],
"title": {"text": "$x=\\int_0^a a^2+1$"},
"title": {"text": "$$x=\\int_0^a a^2+1$$"},
"tickvals": [0, 1],
"ticktext": ["$\\frac{0}{100}$", "$\\frac{100}{100}$"]
"ticktext": ["$$\\frac{0}{100}$$", "$$\\frac{100}{100}$$"]
},
"xaxis2": {"domain": [0.85, 1], "anchor": "y2"},
"yaxis2": {
"domain": [0, 0.45],
"anchor": "x2",
"tickvals": [0, 1],
"ticktext": ["Ha+b+c+dH", "He+f+g+hH"],
"title": {"text": "$(||01\\rangle+|10\\rangle)/\\sqrt2$"}
"title": {"text": "$$(||01\\rangle+|10\\rangle)/\\sqrt2$$"}
},
"height":500,
"width":800,
"margin": {"r": 250},
"title": {"text": "$i\\hbar\\frac{d\\Psi}{dt}=-[V-\\frac{-\\hbar^2}{2m}\\nabla^2]\\Psi$"},
"title": {"text": "$$i\\hbar\\frac{d\\Psi}{dt}=-[V-\\frac{-\\hbar^2}{2m}\\nabla^2]\\Psi$$"},
"annotations":[
{
"text": "H is substituted for $<br>where we would like<br>math but do not yet<br>fully support it",
Expand All @@ -53,23 +53,23 @@
"showarrow": false
},
{
"text":"$(top,left)$","showarrow":false,"xref":"paper","yref":"paper",
"text":"$$(top,left)$$","showarrow":false,"xref":"paper","yref":"paper",
"xanchor":"left","yanchor":"top","x":0,"y":1,"textangle":10,
"bordercolor":"#0c0","borderpad":3,"bgcolor":"#dfd"
},
{
"text":"$(right,bottom)$","xref":"paper","yref":"paper",
"text":"$$(right,bottom)$$","xref":"paper","yref":"paper",
"xanchor":"right","yanchor":"bottom","x":0.2,"y":0.7,"ax":-20,"ay":-20,
"textangle":-30,"bordercolor":"#0c0","borderpad":3,"bgcolor":"#dfd",
"opacity":0.5
},
{"text":"$not-visible$", "visible": false},
{"text":"$$not-visible$$", "visible": false},
{
"text":"$^{29}Si$","x":0.7,"y":0.7,"showarrow":false,
"text":"$$^{29}Si$$","x":0.7,"y":0.7,"showarrow":false,
"xanchor":"right","yanchor":"top"
},
{
"text":"$^{17}O$","x":0.7,"y":0.7,"ax":15,"ay":-15,
"text":"$$^{17}O$$","x":0.7,"y":0.7,"ax":15,"ay":-15,
"xanchor":"left","yanchor":"bottom"
}
]
Expand Down
2 changes: 1 addition & 1 deletion test/image/mocks/parcats_grid_subplots.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
{"label": "Two",
"values": ["A", "B", "A", "B", "C", "C", "A", "B", "C"],
"categoryarray": ["A", "B", "C"],
"ticktext": ["$A^2$", "<b>Bold</b><br>and<br><i>Italic</i>", "<a href='http://www.google.com'>Link</a>"]
"ticktext": ["$$A^2$$", "<b>Bold</b><br>and<br><i>Italic</i>", "<a href='http://www.google.com'>Link</a>"]
},
{"label": "Three", "values": [11, 11, 11, 11, 11, 11, 11, 11, 11]}]
},
Expand Down
2 changes: 1 addition & 1 deletion test/image/mocks/table_plain_birds.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

"height": 30,

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

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

Expand Down
2 changes: 1 addition & 1 deletion test/image/mocks/table_wrapped_birds.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

"height": 30,

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

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

Expand Down
6 changes: 3 additions & 3 deletions test/image/mocks/ternary-mathjax.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@
"sum": 100,
"aaxis": {
"title": {
"text": "$A^2$"
"text": "$$A^2$$"
},
"showline": true,
"showgrid": true
},
"baxis": {
"title": {
"text": "$B^2$"
"text": "$$B^2$$"
},
"showline": true,
"showgrid": true
},
"caxis": {
"title": {
"text": "$C^2$"
"text": "$$C^2$$"
},
"showline": true,
"showgrid": true
Expand Down

0 comments on commit 2ed1b02

Please sign in to comment.