Inserting Maxima plots (from wxmaxima? )



 
I would like to take a plot from maxima and insert it into a LaTeX file.

I found a command plot2d_ps that might be useful, but the documentation says
it puts postscript into a stream "pstream".  But how do I specify the name
of pstream?  Backing up in the documentation I see the there is a plot2d
example with "sin.eps".  But it neglects to say that closeps() is needed. It
also seems that plot2d_ps is quite unnecessary, and is equivalent to
inserting the option [gnuplot_term,ps].

I gather that one also needs to do, and that plot2d_ps doesn't do this; one
must do 

set_plot_option([gnuplot_out_file, "c:\\foo.eps"])


...
For setting a plot option, I did not spot a place where this exact syntax is
shown.

It seems that

plot_options[gnuplot_out_file]:  "c:\\foo.eps" ;

Would be simpler, to explain, though perhaps trickier to implement without
re-doing the interface somewhat.

RJF

PS, I eventually got it to work.