cgn: interface to use gnuplot from Lisp.Version 008b THIS A A BUG-CORRECTION ONLY RELEASE. cgn is an interface to use Gnuplot from Lisp. It has been programmed using the Ltk library to obtain a good portability. I've tested It on Linux and Windows, but It should work wherever Ltk works (Linux, Mac OS X, Windows, OpenBSD ...). You need gnuplot at the path. To use cgn, you need ltk and gnuplot. Just load It with asdf: (asdf:oos 'asdf:load-op 'cgn) (use-package :cgn) or install It with asdf-install: (asdf-install:install 'cgn) You can find cldoc documentation at the doc subdirectory, and the new pdf documentation too. ;Ex: (with-gnuplot ( 'linux ) (format-gnuplot "splot x*y") ;I've added a little of sugar with functions to execute some tasks like these: ;Sets the title (set-title "titol") ;Sets the grid (set-grid 'on) ;(Un)sets the grid (set-grid 'off) ;Creates an animation of cos(a*x) (animate-function "cos(a*x)" :variable "a" :initial_value 2 :increment 0.5 :number_of_frames 20 :rapidity 1 ) ;Plots a points graphic with xyerrorbars (plot-points '(1 2 3) '(4 5 6) :x_error '(0.1 0.2 0.3) :y_error '(0.4 0.5 0.6)) ;Plots a function (only 1 variable) (plot-function "cos(x)") ;Also in a parametric way (plot-function "sin(t), cos(t)") ;Hey, this is a circle! (postscript-copy "file.ps" ) ) Where does cgn work? --------------------- Cgn 008b has been tested succesfully on: - SBCL 1.0.12 on OpenSuse 10.1 for x86_64 - CMUCL 19c on Mandriva Linux 2006.0 for x86 - SBCL 0.9.13 on Mandriva Linux 2006.0 for x86 - CLisp 2.38 on Mandriva Linux 2006.0 for x86 - CLisp 2.38 on Windows XP Professional for x86 - SBCL 1.0.1 on OpenSuse 10.1 for x86_64 - CLisp 2.37 on OpenSuse 10.1 for x86_64