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

maric001

Germany
5 Posts

Posted - 10/01/2014 :  06:26:32 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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.

lkb0221

China
497 Posts

Posted - 10/01/2014 :  11:20:59 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Edited by - lkb0221 on 10/01/2014 11:28:24 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