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

hag

Israel
Posts

Posted - 03/30/2006 :  2:27:44 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5
Operating System:windows xp

how would you normalize a graph? i have 3 graphs and i want all peeks to reach the same point.

Mike Buess

USA
3037 Posts

Posted - 03/30/2006 :  3:07:24 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Bring up the first graph and run this from the script window...

sum(%C);
yPk=sum.max; // save maximum Y value of curve
ymin=y1; // save lower Y axis limit
ymax=y2; // save upper Y axis limit


Then run this for each remaining graph...

sum(%C);
(%C)*=yPk/sum.max; // normalize
y1=ymin; // set lower Y axis limit
y2=ymax; // set upper Y axis limit


...If you need to do this often you might want to create a button that acts like the Normalize command for worksheets. You can assign the script below to the Custom Routine button as described here.

sum(%C);
divider=sum.max;
GetNumber -s $WksAnaly.NormalizeCurrent divider
$WksAnaly.NormalizeDataset;
if (divider==0 || divider==0/0 )
{
type -b $General.Normalize;
return 1;
};
undo %C;
%C/divider;
del divider;

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 03/30/2006 3:37:00 PM
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