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 for Programming
 LabTalk Forum
 Edit data range in plot
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

dalee

Ireland
7 Posts

Posted - 11/04/2009 :  11:14:03 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Originpro 8.0 SR6, Win XP
I am trying to find code that will allow me to alter the display range of a simple xy scatter or line plot. At the moment I am either altering the range from the plot setup window or by right clicking on the data and "edit range". However, I am sure there must be a quicker way of doing this for several data plots, ideally using the command window? Has anyone any suggestions?

Laurie

USA
404 Posts

Posted - 11/04/2009 :  5:35:35 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
To set the display range for all dataplots in the active graph layer, use the following:

doc -e D {set %C -b 5; set %C -e 10}; //you just need to change the 5 and 10 numbers to whatever you want as your start and end

OriginLab Technical Support
Go to Top of Page

dalee

Ireland
7 Posts

Posted - 11/05/2009 :  04:28:24 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
That's exactly what I was looking for.
Thanks Laurie
Go to Top of Page

ben.adam

USA
7 Posts

Posted - 01/11/2016 :  2:55:47 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Laurie

To set the display range for all dataplots in the active graph layer, use the following:

doc -e D {set %C -b 5; set %C -e 10}; //you just need to change the 5 and 10 numbers to whatever you want as your start and end

OriginLab Technical Support



Digging this up after a while. I was hoping LT could add some more functionality over the 'plot details' GUI. Specifically, I would like to edit the plot data range not by index but by x or y value, is that at all possible with any version?

Thanks

Benjamin Adam
Portland State / Oregon State University
Materials Engineering
Go to Top of Page

SeanMao

China
288 Posts

Posted - 01/11/2016 :  10:32:23 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Right now there is no direct way to do so. You will still need to find the row index for nearest X and Y value using xindex function and after that use row index to set data plot display range.

Our LabTalk commands cover all of the controls in Plot Details dialog, can you be more specific on what functionality you are looking for?

Regards!

Sean

OriginLab Tech.


quote:
Originally posted by ben.adam

quote:
Originally posted by Laurie

To set the display range for all dataplots in the active graph layer, use the following:

doc -e D {set %C -b 5; set %C -e 10}; //you just need to change the 5 and 10 numbers to whatever you want as your start and end

OriginLab Technical Support



Digging this up after a while. I was hoping LT could add some more functionality over the 'plot details' GUI. Specifically, I would like to edit the plot data range not by index but by x or y value, is that at all possible with any version?

Thanks

Benjamin Adam
Portland State / Oregon State University
Materials Engineering

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