Function
(gnuplotfile {setting value}* {plot {setting value}*}+)
Creates a Gnuplot file containing (optional) global file settings followed by one or more plots with (optional) plot-specific settings. Each plot is a list or seq in one of the following formats:
( (c1 c2 ... cn) ...)(x1 y1 x2 y2 ... xn yn)(v1 v2 ...
vn)(object1 object2 ... objectn )Of these formats, only the first (point record) format is directly supported by Gnuplot. The other (flat list) formats require an interpretation of their data. The special :points setting described below can be used to specify the format of plots globally or individually. The function will attempt to determine the format of any flat list plot without a :points specification.
In general, each setting is the keyword name of a Gnuplot
setting followed by its value. Settings that appear
before the first plot become (global) gnuplot set command
directives, e.g :title "Hiho" becomes set title
"HiHo" in the gnuplot file. Settings that appear after a
plot are unique to that plot.
Setting values are interpreted in the following way:
gnuplot supports following non-Gnu settings:
gnuplot program is automatically
called with file after it has been written. The default
value is true.(slot1
...)}gnuplot alters the syntax of the following Gnu settings:
set style data {plotstyle}'. Valid plotting styles are
:lines :points :linespoints :impulses :dots :steps :fsteps :histeps :errorbars :xerrorbars :yerrorbars :xyerrorbars :errorlines :xerrorlines :yerrorlines :boxes :filledboxes :filledcurves :boxederrorbars :boxxyerrorbars :financebars :candlesticks :vector
See Gnuplot plotting styles for more information.
(low high);; Plotting data sets (gnuplot "test.plt" '( 0 0 50 .9 100 0) ) (gnuplot "test.plt" :title "My envelopes" '(0 0 25 .9 75 .9 100 0) :title "ramp" '(0 1 5 .5 10 .1 100 0) :title "expt" '(0 0 50 1 100 0) :title "updown") (gnuplot "test.plt" :title "Random numbers" :points :y :style :impulses (loop repeat 20 collect (random 1.0))) (gnuplot "test.plt" :title "Hi Ho!" :nokey #t '(0 0 25 .9 80 .5 100 0) :with :linespoints (loop for i to 100 by 10 collect i collect (random 1.0)) :with :points) (gnuplot "test.plt" :title "Random Midis" :points '(time keynum duration) :style :xerrorbars :yrange '(60 100) (loop repeat 20 for beg = 0 then (+ beg (random 1.0)) for dur = (pick .1 .2 .3) for key = (between 70 80) collect (new midi :time beg :keynum key :duration dur)))
*gnuplot*"gnuplot".*gnuplot-default-settings*(:view #t :style
:linespoints).gnuplot-file [Class]