Several things:
If you want to output a
jpg
file, you must useset terminal jpeg
first. But in any case I would suggest you to use thepngcairo
terminal, if you need a bitmap image.The
tsv
uses tabs as column separator. By default gnuplot uses any white space character as separator, in which case the fifth column is always2013
. So useset datafile separator '\t'
.In order to have some binning, you must use
smooth frequency
with an appropriate binning function, which bins your x-values. As y-values I use1
, so thatsmooth frequency
just counts up.Possibly you must skip the first line of your data file with
every ::1
.In your case I would use
boxes
plotting style:
set terminal pngcairo
set output 'foo.png'
set datafile separator '\t'
set style fill solid border
set boxwidth 8 absolute
set yrange [0:*]
bin(x) = 10*floor(x/10.0)
plot 'foo.tsv' using (bin($5)):(1) every ::1 smooth frequency with boxes title 'ttime'