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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Span to full axis range

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
J.F.P. Posted - 03/20/2012 : 12:46:41 PM
Origin Ver. and Service Release (Select Help-->About Origin): 8.5.1 SR2
Operating System: Win XP

Hallo everybody,

I use NLfit in Labtalk script to fit a part of my data. When plotting the fit curve, it is only displayed in the range of the fitted data. In the NLfit dialog there is the range option to span to full axis range. Is there a similar Labtalk command?

A second question: When plotting multiple graphs in one layer, is it possible to access each of them separate to change color, line style... with Labtalk commands?

Thanks in advance for your help :)

Best regards
Jonas
2   L A T E S T    R E P L I E S    (Newest First)
J.F.P. Posted - 03/22/2012 : 04:56:31 AM
Thanks for your help Sam, it works:)

Two comments:
1. To span to full axis range with

nlgui gg 1;
gg.Graph1.XDataType.Range= 1;
nlgui gg 0;

you have to fit on the data from the graph not the worksheet.

2. To change plot properties you have to use

range p1=1!1; //The first plot
set p1 -c 3; //Change the line's color
set p1 -d 1; //Change the line's style.


Best regards
Jonas
Sam Fang Posted - 03/21/2012 : 05:19:10 AM
To span to full axis range, add the script following nlbegin.

nlgui gg 1;
gg.Graph1.XDataType.Range= 1;
nlgui gg 0;


To change a plot's line property in a layer, you can use the following script.

range p1=1!1; //The first plot
set %c -c 3; //Change the line's color
set %c -d 1; //Change the line's style.


Sam
OriginLab Technical Services

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000