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 for Programming
 LabTalk Forum
 histogram in origin

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
circumvent Posted - 06/01/2009 : 5:49:16 PM
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
3   L A T E S T    R E P L I E S    (Newest First)
circumvent Posted - 06/02/2009 : 9:49:25 PM
thank you guys!
easwar Posted - 06/02/2009 : 10:28:09 AM
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
cpyang Posted - 06/01/2009 : 9:31:03 PM
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

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