On 2013-02-22, Raymond Toy <toy.raymond at gmail.com> wrote:
>>>>>> "Hugo" == Hugo Coolens <coolens at kahosl.be> writes:
> Hugo> plotting: range must be of the form [variable, min, max]; found:
> Hugo> [tau[12],0.1,5]
> Perhaps it's a bug that plotd2 doesn't like tau[12] as the independent
> variable.
Yeah -- plotting code assumes variables are simple symbols. Following
patch relaxes that assumption, and seems to have the desired effect.
I'll investigate some more before pushing this patch.
best
Robert Dodier
PS.
$ git diff src/plot.lisp
diff --git a/src/plot.lisp b/src/plot.lisp
index d344265..badf3a7 100644
--- a/src/plot.lisp
+++ b/src/plot.lisp
@@ -1675,7 +1675,7 @@ output-file))
(defun check-range (range &aux tem a b)
(or (and ($listp range)
(setq tem (cdr range))
- (symbolp (car tem))
+ ($mapatom (car tem))
(numberp (setq a ($float (meval* (second tem)))))
(numberp (setq b ($float (meval* (third tem)))))
(< a b))