set datafile separator ","
set key off
set ydata time
set timefmt y "%H:%M:%S"
#set xdata time
#set timefmt x "%Y-%m-%d %H:%M:%S"
# 2 lines above are commented because they interfere with the histogram setting below
#plot 'type1.csv' every ::1 using 1:3 with boxes, \
# 'type2.csv' every ::1 using 1:3 with boxes
# attempt number 1
#binwidth=200
#bin(x,width)=width*floor(x/width) + binwidth/2.0
#set boxwidth binwidth
#plot 'small_report.csv' using (bin($1,binwidth)):(1.0) smooth freq with boxes
#plot 'small_report.csv' every ::1 using 1:(bin($1,binwidth)) smooth freq with points;
# attempt number 2
n=100 #number of intervals
max=3. #max value
min=-3. #min value
width=(max-min)/n #interval width
#function used to map a value to the intervals
hist(x,width)=width*floor(x/width)+width/2.0
set boxwidth width*0.9
#plot "small_report.csv" u (hist(stringcolumn(1),width)):(1.0) smooth freq w boxes lc rgb"green" notitle
# "small_report.csv" u (hist(stringcolumn(1),width)):(1.0) smooth freq w boxes lc rgb"green" notitle
# 'small_report.csv' every ::1 using 1:0 with points, \
# attempt number 3
reset
set datafile separator ","
set ydata time
set timefmt y "%H:%M:%S"
set style fill solid border -1
set boxwidth 0.5 relative
set style data histograms
set style histogram rowstacked
plot "small_report.csv" u 1