blob: 3ab0868f762602148eadf69fa9db9ddae8d94b38 [file] [log] [blame]
Austin Schuh5af45eb2019-09-16 20:54:18 -07001#!/usr/bin/gnuplot
2
3n=1000 #number of intervals
4max=500. #max value
5min=0 #min value
6width=(max-min)/n #interval width
7#function used to map a value to the intervals
8hist(x,width)=width*floor(x/width)+width/2.0
9set boxwidth width*0.9
10set style fill solid 0.5 # fill style
11
12set logscale y
13set yrange [0.1:]
14set xrange [0:200]
15
16#count and plot
17plot "/tmp/st_csv" u (hist($1,width)):(1.0) smooth freq w boxes, \
18 "/tmp/pt_csv" u (hist($1,width)):(1.0) smooth freq w boxes, \
19 "/tmp/ft_csv" u (hist($1,width)):(1.0) smooth freq w boxes
20
21pause -1
22