plotting to psfile?



Richard Fateman <fateman at eecs.berkeley.edu> writes:

> actually it seems to work a lot worse for me than the examples shown.
>
> the option  [psfile, "c:/temp/sin.eps"]
>
> causes a file maxout.gnuplot to appear in c:/temp.
> I then fire up a cygwin command shell and run gnuplot in it to produce 
> sin.eps
>
> I am using windows xp, wxmaxima,  maxima 5.25.1
>
> unfortunately, an eps file does not work with pdflatex, which I am using,

Use the pdfcairo terminal to produce a pdf file directly:

plot2d(sin(x),[x,0,2*%pi],[gnuplot_term,pdfcairo],[psfile,"./temp.pdf"]);

I don't know why setting 'psfile' works, while

plot2d(sin(x),[x,0,2*%pi],[gnuplot_term,pdfcairo],[gnuplot_out_file,"./temp.pdf"]);

produces a truncated file, but it happens (5.27.0 gcl).

In case you want to add latex markup to your plots, I just noticed that
Gnuplot 4.6 now has a 'cairolatex' terminal which is like the older
epslatex terminal, but for pdf files.

-- 
Leo Butler                <l_butler at users.sourceforge.net>
SDF Public Access UNIX System -   http://sdf.lonestar.org