The following is a fairly simple example of a wire mesh plot.
from pl3d import * set_draw3_(0) x = span (-1, 1, 64, 64) y = transpose (x) z = (x + y) * exp (-6.*(x* x+ y* y)) orient3 () light3 () from plwf import * plwf (z, y, x) [xmin, xmax, ymin, ymax] = draw3(1) limits (xmin, xmax, ymin, ymax)
Calling set_draw3_ with argument zero tells the 3d plotting routines not to draw the graph until
asked (by a call to draw3). orient3 and light3 set the orientation and lighting parameters to
default values when called with no arguments. (light3 is irrelevant for this durface, since it is not
shaded.) The plwf call puts this surface on the drawing list (plwf = ``plot wire frame.'') The
draw3 call then causes the drawing list to be plotted. draw3 returns the maxima and minima of the
x and y variables, which must then be sent to the limits function to prevent the plot appearing distorted.
(Ah, the perils of using low level graphics.)