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
 Adding function curve to scatter plot

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
maric001 Posted - 10/01/2014 : 06:26:32 AM
Origin Ver. and Service Release (Select Help-->About Origin): 9.1 SR3 64bit
Operating System:Win7

Hi there,

i'm sure it is an easy task but i am stuck:

Writing a labtalk script for a standard scatter plot (this works) and want to plot in the same layer a function curve (this i need for sure) where the formula is coming from a certain cell (this is optional).

No fitting needed ,and the axis scale should not change with regards to the scatter data.
1   L A T E S T    R E P L I E S    (Newest First)
lkb0221 Posted - 10/01/2014 : 11:20:59 AM
Hi,

Please see the following example:

// Begin
// Assuming you've already created a scatter plot
// Assuming the graph window is active
create mydata -fp 500 "t*cos(t)" $(X1) $(X2); // Creates a loose dataset called mydata with the same X range as current axis, number of points be 500, by formula t*cos(t)
plotxy iy:=mydata plot:=200 rescale:=0 color:=2 ogl:=[%H]1!;
// End


For more infomation, please see the create cmd page:
http://www.originlab.com/doc/LabTalk/ref/Create-cmd

Zheng
OriginLab

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