I'm writing a mathematical course in LaTeX. For plotting, we use Maxima-Gnuplot. I have a perfect working graph. The label is supposed to contain the formula. The plot I'm using:
sw_draw("
color=\"midnight-blue\",
line_width=2,
explicit(sqrt(x),x,0,5),
yrange=[-5,5],
xrange=[-2,5],
xaxis = true,
yaxis=true,
color=\"midnight-blue\",
label ([\"f(x)={/Symbol @\326\140}x\",-1,2])
")
I've read that the label should contain the 326 for the rootsignbase, and the 140 for the line of the root in the top. I already tried:
- $\sqrt{x}$, which is not working.
- multiple \
Did someone solve this before? I've read through all forums.
set xlabel '$\sqrt{x}$'. Maybe you can try that. - Miguelsw_draw? What interface are you using? What is the content of the Gnuplot output file (maxout.gnuplot or maxout.gnuplot_pipes)? Can you edit the Gnuplot output file to get the display you want? (That would give us a clue as to how to adjust the arguments in Maxima.) - Robert Dodiersw_drawprints the string to generate a Maxima expression. If so I'm guessing you can try this: put four backslashes in each place that you want a backslash in the label string, i.e.:label ([\"f(x)={/Symbol @\\\\326\\\\140}x\",-1,2])- Robert Dodier