Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

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

Example:
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)

Result:
Display showing a 3-dimensional plot



Author: Z. Hlavka, 20000523 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006