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

franz_engel

2 Posts

Posted - 08/12/2013 :  08:52:34 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

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

regards,
franz

Hideo Fujii

USA
1582 Posts

Posted - 08/12/2013 :  10:27:59 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.

Edited by - Hideo Fujii on 08/12/2013 5:31:54 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