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
 Histogram with percentage axes

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
franz_engel Posted - 08/12/2013 : 08:52:34 AM
Hi,

I want to plot a histogram with the count axes in percent. Is this possible?

regards,
franz
1   L A T E S T    R E P L I E S    (Newest First)
Hideo Fujii Posted - 08/12/2013 : 10:27:59 AM
Hi franz,

If you know the total number of samples, say 1234, then you can set the "Divided by Factor" option
in Tick Labels tab for the Y Axis dialog box:
1234/100
If you don't have this number,
you can first run the following commands in the Script window:
range rr=[Book1]!col(B);
sum(rr);
n1=sum.n;
Then, enter the following to the "Divided by Factor" option :
n1/100

I hope this helps.

--Hideo Fujii
OriginLab

postscript:
1) The sample size by the second method excludes the missing values or text values. To make sure
the number of samples, this would be helpful rather than just look at the row# of the bottom cell.

2) Here, "n1" is a global(project) variable, so it is saved within the project, and it is
always available when you open the project file. However, if you make more than one histogram,
you should use other variable names to avoid the conflict.

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