obsoleteSee plot
obsolete
obsolete
obsoleteSee graph
obsolete
axis(args)
plot(mode)
inrange = plot(x,y)
Plot()
plots relative to the origin and scale defined by
calls to axis. The default x and y axes have relative units of 0 to 1 with the plot
located in a 5x3.5 inch area.
plot()
plot(0)
plot(1)
plot(x, y)
plot(mode, x, y)
plt()
but with scale and origin given by axis().
axis()
axis(clip)
axis(xorg, xsize, yorg, ysize)
axis(xstart, xstop, nticx, ystart, ystop, nticy)
Specification of the precision of axis tic labels is available by
recompiling hoc/SRC/plot.c with #define Jaslove 1+
. With this definition,
the number of tics specified in the 3rd and 6th arguments of axis()
should
be of the form m.n. m is the number of tic marks, and n is the number of
digits after the decimal point which are printed. This contribution was
made by Stewart Jaslove.
proc plotsin() { /* plot the sin function from 0 to 10 radians */ axis(0, 10, 5, -1, 1, 2) /* setup scale */ plot(1) for (x=0; x<=10; x=x+.1) { plot(x, sin(x)) /* plot the function */ } axis() /* draw the axes */ }