1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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