Skip to content

masatoi/clgp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clgp

Clgp is a gnuplot frontend based on Common Lisp CLOS system. This is alpha version yet. The APIs may change in the future.

Installation

Clgp requires gnuplot (version 4 or later).

sudo apt install gnuplot

To install with Rowswell,

ros install masatoi/clgp

Usage

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)

./docs/img/clgp-sin.png

Multiple plot from sequence of sequence.

(plot (list y1 y2))

./docs/img/clgp-sin-cos.png

(plot (line y1))

(plot (list (line y1)
            (line y2)))

See examples/plot.lisp.

About

CLOS based Common Lisp frontend of gnuplot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published