Library: | graphic |
See also: | grsurface grcube axesoff |
Quantlet: | graxes3d | |
Description: | Generates 3-dimensional axes with descriptions. |
Usage: | axes=graxes3d(x,description) | |
Input: | ||
x | n x 3 matrix defining the axes; axes go from the minimum to the maximum of supplied values | |
description | 1 x 3 vector of strings 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)
Display showing a 3-dimensional plot