|
From: David L. <lin...@ie...> - 2011-11-14 16:23:50
|
Hello, I would like to plot the distribution of a variable and I follow the directions given in the "Gnuplot in Action" book: I define a binning function: bin(x,s) = s*int(x/s) And then I use the plot command: plot './data.dat' u (bin($2, 0.2)):(1) smooth frequency However, the 'data.dat' file has a number of discontinuities in it (i.e. blank lines). This causes the output to show several sets of histograms, one for each continuous set of data. Is there any workaround for this? I would like the histogram to show the distribution in the whole file, and to ignore discontinuities. Thanks in advance, -- :::::::::::::::::::::::::::::::::::::::::::: David Lindelöf, Ph.D. +41 (0)79 415 66 41 or skype:david.lindelof Better Software for Tomorrow's Cities: http://computersandbuildings.com Follow me on Twitter: http://twitter.com/dlindelof |