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
 normalizing

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
hag Posted - 03/30/2006 : 2:27:44 PM
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.
1   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 03/30/2006 : 3:07:24 PM
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

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