Skip to content

Latest commit

 

History

History
90 lines (59 loc) · 1.09 KB

README.md

File metadata and controls

90 lines (59 loc) · 1.09 KB

Kai

Kai is a plotter library for Common Lisp.

img1 img2

Installation

Roswell

With roswell, install this repository.

$ ros install komi1230/kai

And setup roswell REPL and load with Quicklisp:

(ql:quickload :kai)

ASDF

First, clone this repository and load this:

In terminal:

$ git clone https://github.com/komi1230/kai

And load with ASDF:

(asdf:load-system :kai)

How to use

Check example

Prepare some data:

;; x-axis
(defparameter x
    (loop for i from 0 below 10 by 0.1
          collect i))

;; y-axis
(defparameter y
    (mapcar #'sin x))

This example uses List data but Array is also OK.

Scatter plot

(kai:line x y)

or

(kai:line y)

You can add some options:

(kai:line y 
          :color :magenta 
          :width 10)

Style (Not Necessary)

(kai:title "hogehoge plot")

Show

(kai:show)