Function: draw (<gr2d>, ..., <gr3d>, ..., <options>, ...) Plots a series of scenes; its arguments are
gr3d objects, together with some options. By default, the scenes are put together in one column.
draw accepts the following global options:
draw3d are short cuts to be used when only one scene is required, in two or three dimensions, respectively.
To make use of this function, write first
(%i1) load(draw)$ (%i2) scene1: gr2d(title="Ellipse", nticks=30, parametric(2*cos(t),5*sin(t),t,0,2*%pi))$ (%i3) scene2: gr2d(title="Triangle", polygon([4,5,7],[6,4,2]))$ (%i4) draw(scene1, scene2, columns = 2)$
The two draw sentences are equivalent: (%i1) load(draw)$ (%i2) draw(gr3d(explicit(x^2+y^2,x,-1,1,y,-1,1))); (%o2) [gr3d(explicit)] (%i3) draw3d(explicit(x^2+y^2,x,-1,1,y,-1,1)); (%o3) [gr3d(explicit)]
An animated gif file: (%i1) load(draw)$ (%i2) draw( delay = 100, file_name = "zzz", terminal = animated_gif, gr2d(explicit(x^2,x,-1,1)), gr2d(explicit(x^3,x,-1,1)), gr2d(explicit(x^4,x,-1,1))); End of animation sequence (%o2) [gr2d(explicit), gr2d(explicit), gr2d(explicit)]
There are also some inexact matches for
?? draw to see them.
(%o1) true (%i2)