We know there are some solutions for rendering LaTeX mathematical content on the web, for example MathJax. Is there a similar (free) way to create plot for mathematical formula which is written as LaTeX? For example plots of ƒ(x) versus x. Open source libraries are preferred (I need to use it in an application).

Note: I do not mean graph-theory graphs.

  • Is something like Highcharts or Plotly what you're after? They have nothing to do with LaTeX of course. Apr 22 '17 at 8:25
  • I think using Gnuplot or similar software inside your application could be better to use. It does not rely on online apis then where you probably would have some call limitations.
    – epR8GaYuh
    Apr 22 '17 at 8:28
  • @epR8GaYuh But GNUplot needs plain text notation. I mean if you ask that to plot x=\cos u+\frac{1}{2}, it cannot and you have to ask to plot x = cos(u) + 1/2 instead. Apr 22 '17 at 10:39

The Function Grapher by Troy Henderson is powered by MetaPost version 1.9991 (TeX Live 2016) at the time of writing this answer and it allows one to plot different sorts of functions (one variable, two variables, parametric, etc).

  • +upvote. I could not open linked address. But the word function grapher help me a bit. Apr 22 '17 at 10:54
  • linked page does not understand all mathematical controls. For example it does not understand frac{}{}. Apr 30 '17 at 6:26

I assume that you could use Wolfram Alpha's API to generate plots.

Try reading here: https://products.wolframalpha.com/api/documentation/

  • It is very goof but unfortunately its free access is limited to 2000 call per month. Apr 22 '17 at 8:19
  • I think that it's possible to write a script that writes TeX code, and then using TikZ/PGFPlots, you could write programatically the graph, with the software save the file to where you want, and then just insert an <img> from the path that the script created. Doing that wouldn't be very hard. You just need to do some text parsing to open the file programatically, print code (text) into it, and then save it. Apr 22 '17 at 9:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.