| Library: | graphic |
| See also: | grsurface grcube axesoff |
| Macro: | graxes3d | |
| Description: | Generates a 3-D axes with descriptions. |
| Usage: | axes=graxes3d(x,description) | |
| Input: | ||
| x | n x 3 matrix | |
| description | 1 x 3 vector containing the description of the axes | |
| Output: | ||
| axes | graphical object containing the axes | |
library("graphic")
m = matrix(3)* 5
form = "%.2f" | "%.2f" | "%.3f"
x = grid (#(-3,-3), #(0.12,0.12), #(31,31))
f = exp(-0.5.*(x[,1]^2+x[,2]^2))./(2.*pi)
gc = grcube(x~f,m,form)
gs = grsurface(x~f)
axes=graxes3d(x~f,"x-axis"|"y-axis"|"z-axis")
di = createdisplay(1,1)
axesoff()
show(di,1,1,gs,gc.box,gc.x,gc.y,gc.z,gc.c,axes)
| Library: | graphic |
| See also: | grsurface grcube axesoff |