6b2d21a74a45

Remove the awful gnuplot-expr to avoid exporting X
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sun, 16 Dec 2018 18:26:55 -0500
parents 73c14a96cb0e
children a8b03be59283 9b6480080f38
branches/tags (none)
files package.lisp src/gnuplot.lisp

Changes

--- a/package.lisp	Fri Dec 07 20:58:59 2018 -0500
+++ b/package.lisp	Sun Dec 16 18:26:55 2018 -0500
@@ -311,10 +311,8 @@
   (:export
     :gnuplot
     :gnuplot-args
-    :gnuplot-expr
     :gnuplot-function
-    :gnuplot-histogram
-    :x))
+    :gnuplot-histogram))
 
 (defpackage :losh.iterate
   (:use :cl :iterate :losh.quickutils
--- a/src/gnuplot.lisp	Fri Dec 07 20:58:59 2018 -0500
+++ b/src/gnuplot.lisp	Sun Dec 16 18:26:55 2018 -0500
@@ -126,17 +126,6 @@
     (apply #'gnuplot data args)))
 
 
-(defmacro gnuplot-expr (expr &rest args)
-  "Plot `expr` (an expression involving `x`) with gnuplot.
-
-  See the docstring of `gnuplot-args` for other keyword arguments.
-
-  "
-  `(gnuplot-function (lambda (x) ,expr)
-    :line-title ',expr
-    ,@args))
-
-
 (defun gnuplot-histogram (data
                           &rest args
                           &key (bin-width 1)