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
 Origin Forum
 Help me please: 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

d_br2005

Brazil
Posts

Posted - 05/03/2005 :  09:22:50 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 6.0
Operating System:wdws 98 or xp

First of all forgive me my bad english. Please i need help: I plot (Scatter points), for example, 6 worksheets in a graph, and i want to fit, for example, a linear fit of ALL DATA WORKSHEET points, but i can´t! All i can do is plot ONE of the data worksheet! PLEASE, Anybody???? How can I do it??? Thanks.
Daniel.

Edited by - d_br2005 on 05/03/2005 09:27:29 AM

Thomas M

Germany
Posts

Posted - 05/03/2005 :  10:21:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Do you mean 1 fit over all points or 6 fits, one per graph?

In case one I would suggest to add all datas into one column instead of six, so that it is one set of data. (havn't tried, but should work).

In case two you should set every dataset into an other layer and fit layer after layer.
Go to Top of Page

d_br2005

Brazil
Posts

Posted - 05/03/2005 :  10:47:36 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I want 1 fit over all points. I´ll try to explain better:
I import 6 ascII in 6 different worksheets. I plotted 1 scatter of collum A and B of each worksheet. How can I fit (linear fit, for example) over all points?


One way to do it is cut and paste all data points in one worksheet, but in the graph you can not differentiate the points of each data!(because in this way, it becomes just one data). And I NEED to know the origen of each point!

In another words:
In the menu "Data", there is a check in the selected data (like this):

"

1 "check" (name of data1)
2 (name of data2)
3 (name of data3)
4 (name of data4)
More "



So if I fit, the fit is about the data "checked". How can I "check" all data?


Please, once again, forgive me my bad english.

Edited by - d_br2005 on 05/03/2005 11:01:45 AM
Go to Top of Page

Mike

USA
357 Posts

Posted - 05/03/2005 :  10:55:24 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi d_br2005,

If you are trying to perform multiple simultaneous linear fits without parameter sharing -- i.e. you want to generate a separate fit for each dataset -- you can do this with the Linear Fit Tool (Tools:Linear Fit). Be sure to enable Fit All Curves on the Settings tab.

If you wish to share parameters -- i.e. you want to generate a single fit curve for all datasets -- you must use the Nonlinear Least Squares Fitter or NLSF (Analysis:Non-linear Curve Fit). Before fitting with the NLSF, you will need to go to the Select Dataset page (Action:Dataset), select your dependent and independent datasets and enable Parameter Sharing.

Mike
OriginLab
Go to Top of Page

d_br2005

Brazil
Posts

Posted - 05/03/2005 :  11:09:28 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:

If you wish to share parameters -- i.e. you want to generate a single fit curve for all datasets -- you must use the Nonlinear Least Squares Fitter or NLSF (Analysis:Non-linear Curve Fit). Before fitting with the NLSF, you will need to go to the Select Dataset page (Action:Dataset), select your dependent and independent datasets and enable Parameter Sharing.



Even if i want a linear fit?
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 05/03/2005 :  11:14:59 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Sure... just select the Line function in the Polynomial category.

Mike Buess
Origin WebRing Member
Go to Top of Page

Mike

USA
357 Posts

Posted - 05/03/2005 :  11:27:10 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi d_br2005,

As Mike suggests, in the NLSF choose Categories=Polynomial and Function=Line and you should derive the same result as you would with a linear fit.

What you may need to do is to enable the Polynomial category in your NLSF. I think that this was commented out in Origin 6. To do this, search your Origin directory for a file called NLSF.INI and open it in a text editor. Scroll down to the [Category] section and remove the semi-colon (;) from the line that reads Polynomial=fitfunc. Save your changes and restart Origin, and you should now see a Polynomial category in NLSF.

Mike
OriginLab
Go to Top of Page

d_br2005

Brazil
Posts

Posted - 05/05/2005 :  08:08:35 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
It doesn´t work! I try everething you told me, and it doesn´t work! Origin create a curve and not a strait line with a polynomial line curve!And it creates one curve at each data! I´m freaking out!



Edited by - d_br2005 on 05/05/2005 08:11:36 AM
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 05/05/2005 :  1:09:35 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I don't know why the NLSF tool isn't working for you but here is a possible workaround...

1. Put all data in the same columns and fit from the menu as suggested earlier.

2. Go to your layer contents dialog (layer icon), remove the combined dataset (but leave the fit curve) and add each of the separate datasets.

Now you can use different symbols/colors for each dataset but still have the combined fit.

Mike Buess
Origin WebRing Member
Go to Top of Page

d_br2005

Brazil
Posts

Posted - 05/06/2005 :  10:09:42 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:

I don't know why the NLSF tool isn't working for you but here is a possible workaround...

1. Put all data in the same columns and fit from the menu as suggested earlier.

2. Go to your layer contents dialog (layer icon), remove the combined dataset (but leave the fit curve) and add each of the separate datasets.

Now you can use different symbols/colors for each dataset but still have the combined fit.




I GOT IT! Tanks you all!
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