gnuplot_curve_styles



On Fri, 2007-02-11 at 14:43 +0000, Jaime Villate wrote:
> On Fri, 2007-11-02 at 07:52 -0600, Robert Jerrard wrote:
> > Hmmm, I get 2 blue (lines 3 and -1) and one red line (lines 1), along
> > with the console output:
> ...
> > and the console hangs. Ctrl-c gets it back to:
> > Maxima encountered a Lisp error:
> 
> Sorry, there was a bug that I just fixed a couple of days ago. It works
> fine with the current CVS version. In 5.12.0 and 5.13.0 I think it will
> work if you give the styles option explicitly:
> 
> :lisp (defun $gnuplot_color (c) (nth (mod (round c) 3) '(-1 3 1)))
> plot2d([sin(x),cos(x),0],[x,0,6],[style,[lines,1,1],[lines,1,2],[lines,1,3]])$

Thanks Jamie, yes that works!

Bob
-- 
Dr. Robert J. Jerrard, Professor of Mathematics,
Concordia University College of Alberta,
7128 Ada Blvd., Edmonton, Alberta, T5B 4E4, Canada.
Phone: (780) 479-9291, Fax: (780) 474-1933.