Not being a gnuplot expert (last time I used it was like 25 years ago) and having had some useful applications of Common Lisps :vgplot package, this time I wanted to create a heatmap and - to my surprise - I could not find out, how to do it - even after 2 hours of googling and tinkering.
I use sbcl in the usual emacs-slime combo on a debian system.
Loading vgplot:
(ql:quickload :vgplot)
From reading the sources on github and from googling for heatmap examples for "naked" gnuplot, I deduced, that I probably have to use the (vgplot:surf) function, which uses splot under the hood.
And indeed - I see a 3d mesh plot, when running the function bla below:
(defun bla ()
(let* ((xy-range (vgplot:range 0 10))
(xx (vgplot:meshgrid-x xy-range xy-range))
(yy (vgplot:meshgrid-y xy-range xy-range))
(zz (vgplot:meshgrid-map #'+ xx yy)))
(vgplot:surf xx yy zz)))
From reading the gnuplot google results, some "pm3d" thing showed up without explanation and I think I need to use (vgplot:format-plot nil "<something>") to turn the figure into a heatmap but I could not find out, what exactly I need to do.
Hoping I am not the only one using vgplot, I am optimistic, that it is an easy answer for anyone who uses this regularly.

