Sixteen real numbers that describe the elements of a 4x4 rotation matrix. The numbers are expected in row major order.
The rotation command allows the user to directly set the rotation matrix for the active display. The matrix specified by the rotation command is multiplied into the current rotation matrix to yield the new rotation matrix. This allows the user to specify the rotations of objects in a window. This command is useful in setting up a plot's appearance through a script and can be useful in scripted movie generation.
#Multiply current rotation by the identity matrix
rotation 1. 0. 0. 0. 0. 1. 0. 0. 0. 0. 1. 0. 0. 0. 0. 1.
#Multiply current rotation matrix by this matrix to rotate
#the plot by 45 degrees in X, then 45 degrees in Y.