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 for Programming
 LabTalk Forum
 histogram in origin
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

circumvent

Posts

Posted - 06/01/2009 :  5:49:16 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): Origin 8
Operating System:

Hi,
Can anyone help me with the histogram in origin? I have data and can plot them with histogram (Plot->statistics->histogram), but I can not get the data out. (I want a two column data set, with X the bin range, such as 0.5 stands for 0-1, 1.5 stands for 1-2, 2.5 stands for 2-3, and Y with the number of histogram).

I found a command in labtalk, histogram(dataset, inc, min, max), but after using it, nothing happens.

Thanks

cpyang

USA
1406 Posts

Posted - 06/01/2009 :  9:31:03 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
If you need the binned data, better do frequency count,

Select the column and choose Statistics:Descriptive Statistics:Frequency Count, which runs the freqcounts X-Function.

To use in LatTalk, type

freqcounts -h

from the classic script window to find out how to use it.


CP
Go to Top of Page

easwar

USA
1965 Posts

Posted - 06/02/2009 :  10:28:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

If your raw data is in column 1 and you want the bin-center and counts in the same sheet as output, starting at say column 2 onwards, you could use the freqcounts X-Function from script with options such as below:


freqcounts irng:=col(1) min:=0 max:=4 stepby:=increment inc:=1 center:=1 end:=0 count:=1 cumulcount:=0 rd:=col(2);


The output type is ReportData which by default creates a new sheet and puts all output columns in that sheet, but you can override that by specifying a starting column such as col(2) in the command above, and then all output cols will be placed in the active sheet starting at the specified column.

Easwar
OriginLab
Go to Top of Page

circumvent

Posts

Posted - 06/02/2009 :  9:49:25 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thank you guys!
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