[CM] plot.cl (from dlocsig)

taube@uiuc.edu taube@uiuc.edu
Mon, 5 Jun 2006 09:26:02 -0500


there is also some gnuplot code in the cmt module (cvs checkout cmt) that 
includes importing. it would be nice if these got merged into somrthing that 
use streams and that you could output algos to via 'events', like plotter 
fomus or cmn

---- Original message ----
>Date: Mon, 05 Jun 2006 13:41:34 +0200
>From: andersvi@extern.uio.no  
>Subject: [CM] plot.cl (from dlocsig)  
>To: cmdist@ccrma.Stanford.EDU
>
>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")
>
>________________
>plot.cl (10k bytes)