3.3.2.33.2 Options for Special GraphLayer_Options_for_Special_Graph
-3d
Syntax: layer -3d m value
Control of perspective, location of rotational axes, and plot relative to the layer frame (3D plots).
Perform the following options on a 3D graph for values of value:
P+1 = increase the perspective angle plus three units.
|
P-1 = decrease the perspective angle minus three units.
|
Rotation = reset the axes to their original rotational location.
|
Frame = fit the graph to the layer frame.
|
If value equals P+1, P-1, Rotation, or Frame, execute doc -uw to update the graph.
layer -3d m P+1; //Increase the perspective angle.
doc -uw; //Fresh the graph.
layer -3d m rotation; //Go back to the original rotational location.
-3d r
Syntax: layer -3d r %A deg ntimes delay
Set the 3D graph rotation. The ntimes and delay are only available for 3D OpenGL based graphs (Origin Version:9.0 SR0), they are used to create movie-like rotation effect.
%A could be X (X axis), Y (Y axis), Z (Z axis), V (Azimuth), H (Inclination), A (Roll) or R (Random change), which are the axis or direction to be rotated.
deg is the number of degrees +/- to rotate the graph.
ntimes indicates how many times the plot will be rotated and redrawn, if it's omitted, the plot will only rotate once without being redrawn.
delay is the delay time after each rotation in milliseconds.
After executing this command, execute doc -uw to update the graph.
layer -3d r X 90; //Rotate the X axis by 90 degree.
layer -3D r Z 15 24 500;//Rotate around Z axis by 15 degrees 24 times
//with a 500 millisecond delay at every rotation.
-3d c
Syntax: layer -3d c
To convert the GDI-based 3D graph in the active graph layer to be OpenGL-based.
This is an example to make all GDI-based 3D graphs in an Origin project produced by earlier versions or when the system variable @ogl=1 is 0 convert to OpenGL based.
doc -e LP //execute for all graph windows
{
layer -3d c;//convert the current layer to OpenGL
}
-cam
Syntax: layer -cam -A value -I value -R value
Control the directions of 3D OpenGL plot:
Set the Azimuth, Inclination and Roll values respectively. The setting can also be accessed by using the layer.camera object.
-pgm
Syntax: layer -pgm value
Enable arbitrary rotation and skewing for 2D Cartesian axis. 1 = enable, 0 = disable.
-Y ?
Syntax: layer -Y ?
Query the waterfall graph in the active graph window and assign the values of the X offset and Y offset to variables X and Y.The X and Y offset amount is expressed as a percentage.
-Y !; Disable the X and Y offsets in the waterfall graph in the active graph window=
Syntax: layer -Y !
Disable the X and Y offsets in the waterfall graph in the active graph window.
-Y
Syntax: layer -Y x, y
Set the X and Y offset to produce a waterfall effect for all the data plotted in the layer.The x and y offset amount is expressed as a percentage (you must include the comma between the x and y offset). Note: To assign these offset values to variables X and Y, execute the layer -y ? command after setting the offsets.
layer -y 5, 10;
layer -y ?;
-z; set zero angle and direction for polar plot=
Syntax: layer -z angle, direction
Set the zero angle and direction for polar plot. The angle is the zero angle to be used (i.e. the angle points at 3 o'clock direction), and if direction is 1, clockwise is used, if direction is 0, counter-clockwise is used.
|