Author |
Topic |
|
dalee
Ireland
7 Posts |
Posted - 11/04/2009 : 11:14:03 AM
|
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
|
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 |
|
|
dalee
Ireland
7 Posts |
Posted - 11/05/2009 : 04:28:24 AM
|
That's exactly what I was looking for. Thanks Laurie |
|
|
ben.adam
USA
7 Posts |
Posted - 01/11/2016 : 2:55:47 PM
|
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 |
|
|
SeanMao
China
288 Posts |
Posted - 01/11/2016 : 10:32:23 PM
|
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
|
|
|
|
Topic |
|