[Maxima] draw fails in remote ascii terminals

Robert Dodier robert.dodier at gmail.com
Thu Nov 25 11:47:57 CST 2010


On 11/25/10, Sheldon Newhouse <sen1 at math.msu.edu> wrote:

>   How do I get draw to export graphics windows in remote maxima?
>
>   I want to use maxima on remote servers.

My advice is to login via ssh -X. But if you are seeing plot2d output,
probably you already solved that problem.

> Here is the output on the terminal from
>
> (%i1) draw2d(explicit(x^2,x,-1,1));
> (%o1)                          [gr2d(explicit)]
> (%i2)
>
> So, it looks as if the graphics is generated.  But, there is no display
> on the remote machine.
>   Both plot2d and gnuplot work as expected.

Hmm. My first guess is that the Gnuplot output file generated by
draw2d is invalid or something. By default draw2d generates a
couple of output files, maxout.gnuplot and data.gnuplot, in the
directory named by the global variable maxima_tempdir.
cd to that directory and try running Gnuplot from the shell prompt;
perhaps this will do: gnuplot -persist maxout.gnuplot

If that doesn't display anything, there's a bug in draw2d.
Otherwise, I'm really puzzled.

Note that plot2d generates files of the same names, so try
the gnuplot command only after calling draw2d.

HTH

Robert Dodier


More information about the Maxima mailing list