draw2d line_type problem



> Hello,
>   Has something changed with draw2d?
> line_type is no longer allowed as an option.

> (%o1)
> (%i2) load(draw);
> (%o2)         /usr/local/share/maxima/5.12.0/share/draw/draw.lisp
> (%i3) draw2d(line_type = 3, explicit(x^2, x,-1,1));
> 
> Illegal line type: 3
>   -- an error.  To debug this try debugmode(true);


Hello,

Yes, there were some changes but line_type is still there. In the first
versions, you should give 'line_type' a numeric index to specify the
color, which was not very comfortable. Now, you have option 'color'. At
this moment, you can give 'line_type' two possible values: 'solid or
'dots.

The documentation is updated in cvs:

-----------------------------------------------
@defvr {Graphic option} line_type
Default value: @code{solid}

@code{line_type} indicates how lines are displayed; possible values are
@code{solid} and @code{dots}.

This option affects the following graphic objects:
@itemize @bullet
@item
@code{gr2d}: @code{points}, @code{polygon}, @code{rectangle}, 
@code{ellipse}, @code{vector}, @code{explicit}, @code{implicit}, 
@code{parametric} and @code{polar}.

@item
@code{gr3d}: @code{points}, @code{explicit}, @code{parametric} and @code{parametric_surface}.
@end itemize

Example:

@example
(%i1) load(draw)$
(%i2) draw2d(line_type = dots,
             explicit(1 + x^2,x,-1,1),
             line_type = solid, /* default */
             explicit(2 + x^2,x,-1,1))$
@end example

See also @code{line_width}.
@end defvr
-----------------------------------------------

When Maxima 5.12 was released, I couldn't make the necessary changes in
time. Sorry.

In any case, don't forget that the draw package is still in an unstable
step of development and there could be incompatibilities with previous
versions. Nonetheless, I'll try to make changes smoother.

Thanks for trying this package. Some of its features were introduced
after your own suggestions (file with mouse-clic coordinates, zooming);
thanks for this too.


-- 
Mario Rodriguez Riotorto
www.biomates.net