the data is transformed into a histogram via the bin function and then plotted via the plot with boxes command.
#!/usr/bin/gnuplot file="data.dat" binwidth=1.0 bin(x,width)=width*floor(x/width) set style fill solid 0.5 plot file u (bin($1,binwidth)):(1.0) smooth freq with boxes ls 1 t 'total'
the result looks something like that:
Keine Kommentare:
Kommentar veröffentlichen