GitHub - HazenBabcock/cl-plplot: A CFFI based interface to the PLplot scientific plotting library (original) (raw)

cl-plplot

A Common Lisp / CFFI based interface to the PLplot Scientific Plotting Library.

News

2015-05-06

Finished updating the Lisp examples to match the PLplot examples for v5.11.

2014-12-13

Added gtk-example.lisp demonstrating how to combine cl-plplot and cl-cffi-gtk.

2014-07-05

Added commonqt-plot package demonstrating how to combine cl-plplot and CommonQt.

Layout

cl-plplot

This is currently 18 files (in src/window).

The file src/examples/window-examples.lisp contains examples of how to use cl-plplot to generate different 2D plots.

cl-plplot-system

This is currently 5 files (src/system).

The file system-examples.lisp contains some examples of how you might directly use the functions in cl-plplot-system. Also, src/examples/ contains Lisp versions of all the standard PLplot examples. Other useful resources are the documentation that comes with plplot, the examples that come with plplot, the (admittedly somewhat sparse) comments in api.lisp & possibly plplot.h.

A callback has been added that should trap PLplot when it tries to call exit() and instead cause a Lisp side error to be thrown. If you find a PLplot error that is not trapped by this callback please let me know.