plot = {
let f_compiled = math.compile(eq);
let plot = funplot(x => f_compiled.evaluate({ x: x }));
let tex_snippet = MathJax.tex2svg(
String.raw`${TeXCode}`
).querySelector("svg");
d3.select(plot)
.append('g')
.attr('transform', `translate(50 0) scale(.5)`)
.append(() => tex_snippet);
return plot;
}