Ask HN: PST-plot for the web? (LaTeX's declarative SVG plot generation)
But an almost equally frequent usecase is plotting functions declaratively using postscript, they are rendered as vector figures and has the signature "elegant black-line plots" style that you associate with math textbooks figures -- in fact the majority of them are probably generated this way, since the authors were already writing in LaTeX to begin with.
An example can be seen here, you'll notice that the figures are all vector based: http://coin.wne.uw.edu.pl/wincenciak/latex/pstricks_plotting.pdf
I see a lot of web components that uses canvas plotting, and none which renders a simple function-plot into a vector graphics figure.
For my particular use case, I'm writing some math guides using MdBook, and while the MathJax support is nice, for simple illustrative plots embedding an entire Desmos canvas is too much, when all that is needed is a static figure.
It would also be desirable to get that "black line math textbook plot" style without too much configuration -- all the web plotting frameworks use the ugly thin-blue-line MS Excel style by default -- but with support for dark theme like MathJax/KaTex does.