plotting from data file



> Dear list! Is there a way to plot data from file on hard disc in
> maxima? I mean something similar to gnuplot construction:
> plot "mydata.dat" using 1:2 title 'Column'
> TIA
> --
> Hiisi.
> Registered Linux User #487982. Be counted at: http://counter.li.org/
> --
> Spandex is a privilege, not a right.
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>

You can read the data into a nested list:

   data: read_nested_list("mydata.dat");

If the data file consists of two columns, the data can be plotted directly:

   load(draw);
   draw2d(points(data));

If the data file has more than 2 columns, the two columns to be plotted
have to be extracted (e.g. column 3 versus column 1):

   data1:map(lambda([u],[u[1],u[3]]),data);
   draw2d(points(data1));

Regards
Wilhelm Haager