-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathgnuplot-interface-package-def.lisp
More file actions
49 lines (41 loc) · 1.29 KB
/
gnuplot-interface-package-def.lisp
File metadata and controls
49 lines (41 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
;;;; package.lisp
(defpackage #:gnuplot-interface
(:nicknames #:gpi)
(:use #:cl)
#+skip-external-program(:use #:external-program)
(:import-from :alexandria
:symbolicate)
(:export
;; Many exported commands have a second name to prevent conflicts
;; with other packages. Thus `command' can also be called with
;; `gnuplot-command'
;;
;; In the lines below, if a line has two symbols, the second symbol
;; is alternate command name
:start :start-gnuplot
:init-gnuplot
:hello-world :gnuplot-hello-world
:test :gnuplot-test
:reset :gnuplot-reset
:stop :stop-gnuplot
:command :gnuplot-command
;; low level commands
:send-command :send-line :finish-command :send-line-break
;; debugging
:with-captured-gnuplot-input :*gnuplot-input-string*
:*terminal*
:normalize-namestring)
(:documentation
"Package for starting a gnuplot subprocess and sending gnuplot
commands to it. This package does not introduce plotting commands of
its own. It only serves to send command strings to the gnuplot
process.
The package symbols are not meant to be imported into user packaes.
They are intended to be used as:
gpi:start-gnuplot
gp1:command
gpi:test
gpi:...
"))
(unless (find :native-external-program *features*)
(push :native-external-program *features*))