Skip to content

komi1230/kai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

A high-level plotter library for Common Lisp.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •