### The Maxima on-line user's manual

Algebra Calculator

#### Draw

Function: draw (<gr2d>, ..., <gr3d>, ..., <options>, ...) Plots a series of scenes; its arguments are `gr2d` and/or `gr3d` objects, together with some options. By default, the scenes are put together in one column.

Function `draw` accepts the following global options: `terminal`, `columns`, `pic_width`, `pic_height`, `eps_width`, `eps_height`, `file_name` and `delay`.

Functions `draw2d` and `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 `load(draw)`.

Example:

```          (%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:
(%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:
(%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)]```

See also `gr2d`, `gr3d`, `draw2d` and `draw3d`..

There are also some inexact matches for `draw`. Try `?? draw` to see them.

```(%o1)                                true
(%i2) ```

### Related Examples

s:[ 28, 35, 19, 37, 3...

Calculate

draw2d(vector([0,0],[...

Calculate

Calculate

u:[2,1,4];

O:[0,0,0];

Calculate

f(x) := x^2;

draw2d(color = red, e...

Calculate

f(x):=7/6*x+3/2;

Calculate

a:-.51;

b:-3.47;

Calculate

f(x):=1/(x*sqrt(1+lnx));

g(x):=0;

Calculate

f(x):= sqrt(28e-3/(2*...

I: integrate(f(x),x, ...

Calculate