Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 1.36 KB

File metadata and controls

15 lines (11 loc) · 1.36 KB

cl-matplotlib

Matlab like interactive plotting experience in Common Lisp using python+matplotlib using https://github.com/ajberkley/py4cl2 (forked from https://github.com/digikar99/py4cl2 currently, will try and merge changes).

This is a very early work in progress! If you are interested, create an issue and we can talk about it!

With a small tweak to the read-eval loop in py4cl2 we can get nice interactive (zoomable, customizable) PyQt6 / matplotlib plots while still having a lisp repl to interact with them. The main complexity is that we have to turn the py4cl2 dispatch loop inside out so it gets called from the Qt6 main loop. See ajberkley/py4cl2 for a fork of py4cl2 that supports the inside out dispatch loop, asynchronous callback support, and multiple python processes.

cd ~/quicklisp/local-projects
git clone https://github.com/ajberkley/py4cl2
git clone https://github.com/ajberkley/cl-matplotlib

You will need to pip install PyQt6, matplotlib, numpy, scipy at least. Start a virtual env if they aren't globally installed, then start up emacs / slime and (in-package:cl-matplotlib) then (try-callbacks) and click the Boo button to see callbacks into lisp, then (plot-random-points)...

image