[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [plt-scheme] Gnuplot



On May 15, Paulo J. Matos wrote:
> If not, does any one know the best approach to create one for
> MzScheme?  Any hints?

You could do it in a very simple way -- just start a gnuplot process
with an input pipe, then just feed it gnuplot commands.  Something
that is very useful for this is the way gnuplot can just process data
from its input, for example you can feed this to gnuplot:

  plot '-' w l
  1 1
  2 4
  3 9
  4 16
  5 25
  e
  pause 1

and it will show the graph for one second (or make it a pause -1 and
send it a newline to continue), or use something like this:

  set terminal postscript
  set output 'foo.ps'
  plot '-' w l
  1 1
  2 4
  3 9
  4 16
  5 25
  e

to create a postscript file.  IIRC, it comes with some demo files that
you can look at for things you want to do with it.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!