I would like to have my gnuplot legends set in LaTeX math mode, because they often are described by a formula. I use wxMaxima to generate the plots, but I could switch to using gnuplot directly, if that makes things simpler. I am also using pdflatex, and would like to stick to that.
Tell me more
×
TeX - LaTeX Stack Exchange is a question and answer site for
users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
|
Concerning Andrew's wish for a short tutorial: Here it is. First, we set up a gnuplot called test.plt:
Then we also set up a small Makefile:
Running "make all" will produce this plot:
Note: Backslashes need to be doubled for some reason. I guess they have a special meaning as well in gnuplot. |
|||||||||||||
|

tikzor theepslatexterminal in gnuplot and then include the resulting files in a LaTeX document, all the text will be typeset using LaTeX, so you can just use math mode directly. Would that be a feasible workflow? – Jake Aug 25 '11 at 11:09set out <filename.tex>, do the plotting, and then callset out(without a file name) again, to close the file. – Jake Aug 25 '11 at 11:29