Clgp is a gnuplot frontend based on Common Lisp CLOS system. This is alpha version yet. The APIs may change in the future.
Clgp requires gnuplot (version 4 or later).
sudo apt install gnuplot
To install with Rowswell,
ros install masatoi/clgp
The first step is to prepare the data.
(in-package :clgp)
(defparameter x (loop for x from (- pi) to pi by 0.1 collect x))
(defparameter y1 (mapcar #'sin x))
(defparameter y2 (mapcar #'cos x))
(defparameter y3 (mapcar #'tan x))
(defparameter y4 (mapcar #'exp x))
Plot from just sequence of numbers.
(plot y1)
Multiple plot from sequence of sequence.
(plot (list y1 y2))
(plot (line y1))
(plot (list (line y1)
(line y2)))
See examples/plot.lisp
.