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
 Origin Forum
 Fit data in plot with categorized data

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
Adamantan Posted - 09/25/2025 : 06:56:54 AM
Helo,
i have a very basic problem. My x data is in column D and my y data in column G. Categories (different ratios) in column B.

I managed to plot the data and to color it according to the categories. So far so good.
Now I would like to make a nonlinear fit for each category without manipultaing the tables layout. I tried in the fit dialog to find something like fit according categories, however without success.
Can anyone help me?


Origin Ver. Pro 2023b and Service Release SR1 10.0.5.157 (Select Help-->About Origin):
Operating System: Windows 10
3   L A T E S T    R E P L I E S    (Newest First)
snowli Posted - 09/26/2025 : 10:03:30 AM
You are welcome!

Snow
Adamantan Posted - 09/25/2025 : 10:10:03 AM
Hey Snow,
omg, you saved my day ;) thank you very much.
snowli Posted - 09/25/2025 : 09:01:07 AM
Hello,
You will need to unstack data first by column B and then select all unstacked data to plot and fit.

E.g.
Select D and G columns, then choose Worksheet: Unstack Columns... (in newer versions it's under Reconstruct menu)
Set Group Columns as B.
Click OK.

A new sheet with pairs of each category will be created.
Select all data then to plot.
Since it's multiple Y, they will show different colors automatically.
Then open Nonlinear Curve Fit dialog.
Choose fitting function.
Go to "Data selection" tab, click the > next to "Input Data" and choose Add all plots in active page. (note: you need to do this because by default only 1 plot will be fitted.)
Then do the fit.

Thanks, Snow

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