I am new to gnuplot. I need to make a histogram of some data I have. How do
I do this? If there is some online source that describes this, please direct
me to it. THANKS!
View this message in context: http://www.nabble.com/histogram-t1775174.html#a4832177
Sent from the Gnuplot - User forum at Nabble.com.
From: Ronnie Refstrup Pedersen <r.pedersen@tu...> - 2008-01-17 23:03:52
I am using gnuplot 4.0
I want to make a clustered histogram
and have followed tutorial on the web..
but is histogram actually supported?
Do I need extra libraries etc?
Delft University of Technology
Department of Civil Engineering and Geosciences
P.O. Box 5048
2600 GA Delft
p:+31 15 278 9193
f:+31 15 278 6383
Ronnie Refstrup Pedersen wrote:
> I am using gnuplot 4.0
> I want to make a clustered histogram
> and have followed tutorial on the web..
> but is histogram actually supported?
Yes. But not in the version of gnuplot you have. 4.0 is several years
out of date. You really should update.
> I am new to gnuplot. I need to make a histogram of some data I have. How do
> I do this?
Depends on what you mean by "make a histogram". There are two rather
distinct things people refer two by this phrase: binning & counting
data into a histogram dataset, and displaying such a dataset as a plot.
gnuplot, by its nature, is really only meant to do the second part.
Following the old Unix dogma of "one tool <--> one task", binning and
counting is not gnuplot's job. But it does offer rudimentary support
for it, as of version 4.0:
bin(x,width) = width * floor(x / width)
plot 'data' using (bin($1,5):(1.0) smooth frequency with histeps