Oh well, you are free to ignore the simple solution I gave you.
Regards,
Jaime
On 20-07-2013 14:21, jiun bookworm wrote:
> seems like there may not be a way to pass a function thats to be
> evaluated as the
> parameter to gnuplot, for now i settled with having a little program
> watch my work directory and rename each image as soon as it created.
> Not efficient but until i figure out some way of adding hooks to
> maxima's gnupot interface, this will suffice.
>
> On Sat, Jul 20, 2013 at 12:09 PM, Jaime Villate <villate at fe.up.pt
> <mailto:villate at fe.up.pt>> wrote:
>
>
>
> plot_file():=
> ['gnuplot_out_file,concat("./tmp/",string(gensym("plot")),".png")]$
>
> mypngplot2d([aargs]):=apply(plot2d,append(args,[[gnuplot_term,png],plot_file()]))$
>
> mypngplot2d(x^3,[x,-2,2]);
>
> and the plot of x^3 was saved into the file ./tmp/plot972.png. You
> can still type plot2d(x^3,[x,-2,2]) to see the same plot on your
> screen.
>