The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 set plot range problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

benderrr

Germany
Posts

Posted - 07/20/2005 :  5:39:23 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Mike Buess

USA
3037 Posts

Posted - 07/21/2005 :  01:30:45 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000