|
From: zeinab.khorrami <zei...@gm...> - 2010-05-03 11:19:52
|
I have plotted the histogram, Now, how can I save the data of my histogram, I need the numbers. (I need it to plot log(n)) Hans-Bernhard Bröker-2 wrote: > > kmsmith137 wrote: > >> How can I make a histogram in gnuplot? > > From the point of view of the purity, you shouldn't be trying to. The > Unix philosophy is "one tool <-> one task". gnuplot's task is plotting, > not data processing. > >> I could write a standalone program which preprocesses my sample file, and >> outputs the bin ranges and counts, but surely there is some way to do the >> binning internally to gnuplot? > > There's one, but it's a bit quirky: > > bw = 5 # substitute what you want > bin(x,width)=width*floor(x/width) > plot 'data' using (bin($1,bw)):(1.0) smooth freq with boxes > > See "help smooth" to understand what this does. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gnuplot-info mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://old.nabble.com/gnuplot-histograms-tp15811193p28433979.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |