Protocol for formatting things as Gnuplot commands.
Protocol for formatting things as Gnuplot commands.
(format x)
Format this thing as a Gnuplot command string.
Format this thing as a Gnuplot command string.
(list & elements)
A gnuplot comma-separated list, rendered as a,b,c
A gnuplot comma-separated list, rendered as a,b,c
(lit s)
A literal string, formatted exactly as it is.
A literal string, formatted exactly as it is.
(range lower upper)
A gnuplot range, formatted as [lower:upper]
A gnuplot range, formatted as [lower:upper]
(raw-plot! commands datasets)
Writes a plot! Takes a sequence of Commands, and a sequence of datasets, represented as a sequence of points, each of which is a sequence of numbers.
Writes a plot! Takes a sequence of Commands, and a sequence of datasets, represented as a sequence of points, each of which is a sequence of numbers.
(run! input)
Opens a new gnuplot process and feeds it the given input stream, waits for
the process to exit, and returns a map of its {:exit code, :out string, and :err string}
.
Asserts that gnuplot exits with 0; if not, throws an ex-info like
{:type :gnuplot, :exit 123, :out ..., :err ...}
.
Opens a new gnuplot process and feeds it the given input stream, waits for the process to exit, and returns a map of its `{:exit code, :out string, and :err string}`. Asserts that gnuplot exits with 0; if not, throws an ex-info like `{:type :gnuplot, :exit 123, :out ..., :err ...}`.
(take-elide n coll)
Like take, but if there are more than n elements, returns n elements, followed by '...
Like take, but if there are more than n elements, returns n elements, followed by '...
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close