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
 Plot in Labtalk
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

gstiago

Brazil
9 Posts

Posted - 01/29/2016 :  2:31:20 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginLab: 8.5 PRO
Operating System:win 7 64 bits

Hello everyone,
I have one worksheet with one x column and 15 y columns, How can I plot all Y columns in one different graphic like:
(x,y1) one graphic
(X,y2) other graphic..etc. and take the linear fit using labtalk? I tray :

>>for(ii=3; ii<=55; ii++){range ss = [book9]sheet1!col(2);range dd = [book9]sheet1!col($(ii));plotxy (ss,dd) plot:= 202;}

But this dont work ...( iy varname error)...

Can someone help me.

My best Regards

T. G. Santos

lkb0221

China
497 Posts

Posted - 01/29/2016 :  2:38:01 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
If ss is always the X column associated with all Y columns, just use

loop (ii, 3, 55) {
range dd = [book9]sheet1!$(ii);
plotxy iy:=dd plot:=202;
}
Go to Top of Page

gstiago

Brazil
9 Posts

Posted - 01/29/2016 :  6:48:17 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello lkb0221,
I use this code, but this just return all plots in the same graphic, in differents layers...
Someone know why this happnd?

Best Regards

T. G. Santos
Go to Top of Page

gstiago

Brazil
9 Posts

Posted - 02/01/2016 :  08:28:40 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello All,

I just make a loops for manipulate data like I want and I Used the multi-data fit by graphic acess..in my case I have a little of worksheets, and made this manually was more easy. But If someone knows how to made the same( fit linear in a data like xyyyyyy for all curves ) please share with us..

My Best Regards..

T. G. Santos
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