T O P I C R E V I E W |
benderrr |
Posted - 07/20/2005 : 5:39:23 PM Origin Version (Select Help-->About Origin): 7.5 Operating System: WinXP SP1 Hello, I tried to change the x-axis plot range of a 2D-graph (named dataplot1) via the script window by typing
set dataplot1 -b 1 -e 10;
but this results in a command error. What is going wrong?
Additionally, I'd also like to change the y-range, and also the x- and y-range of the plot in layer 2 of the active graph window. Can anyone help? Thank you very much in advance, bender |
1 L A T E S T R E P L I E S (Newest First) |
Mike Buess |
Posted - 07/21/2005 : 01:30:45 AM Hi Bender,
You're using the wrong command. The left and right limits are X1 and X2, lower and upper limits are Y1 and Y2...
x1 = X min; x2 = X max; y1 = Y min; y2 = Y max;
Use lay -o to act on a non-active layer...
lay -o 2 { x1=X min; x2=X max; y1=Y min; y2=Y max; };
Alternatively...
// layer 1 limits layer1.x.from = X min; layer1.x.to = X max; layer1.y.from = Y min; layer1.y.to = Y max; // layer 2 limits layer2.x.from = X min; layer2.x.to = X max; layer2.y.from = Y min; layer2.y.to = Y max;
The 'set' command takes a dataset, not a graph window, as argument which explains the command error. Also, the beginning and end arguments must be in separate statements. This will show points 4 through 10 in Data1_B but won't affect the X axis range...
set Data1_B -b 4; set Data1_B -e 10;
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 07/21/2005 01:46:30 AM |
|
|