[CM] plot.cl (from dlocsig)

andersvi at extern.uio.no andersvi at extern.uio.no
Mon Jun 5 04:41:34 PDT 2006


There are various plotting packages for cm lying around.

Heres my favorite - a very simple, but effective gnuplot-based
one.  I find i use it all the time, needing nothing but gnuplot
set up.  The code below is set up to run with sbcl as well as the
others.

I havent set up with any schemes here.  Maybe someone has some
time to spare.  Its a matter of redefining #'open-plot and
#'close-plot to whatever calls are used to manage
processes/shells by the implementation.

> (plot-data (loop repeat 100 collect (random 1.0)))

> (plot-2d-curve '(0 0 1 1 8 0.7 10 0))

> (plot-2d-curves (list '(0 0 .1 1 .8 0.7 1 0) '(0 1 1 0)))

> (plot-3d-curve (loop repeat 7
			 for x = (between -1.0 1.0)
			 for y = (between -1.0 1.0)
			 for z = (between -1.0 1.0)
			 append (list x y z))
		   :style "lp")

-------------- next part --------------
A non-text attachment was scrubbed...
Name: plot.cl
Type: application/octet-stream
Size: 9332 bytes
Desc: plot-functions from dlocsig.lisp
URL: <https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20060605/eb2cb657/attachment.obj>


More information about the Cmdist mailing list