summaryrefslogtreecommitdiff
path: root/utils/pow_histogram.gp
blob: ad072f1cbd6087fa18397ce6f439c36c47839818 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This script has three parameters:
#   infile  - input file with the data
#   outfile - output file (image)
#   bitnum  - number of zero bits in PoW
#   count   - number of samples in the input data

set xlabel 'T, sec'
set ylabel 'Frequency'

width=0.2
set boxwidth width*1
bin(x,width)=width*floor(x/width)+width/2.0

set style fill solid 0.4

set term png
set output outfile

plot infile using (bin($1,width)):(1.0) \
	smooth freq with boxes \
	title "\nTime to find ".bitnum."-bit PoW\n(".count." samples, binsize = 0.2 sec)" \
	linecolor rgb "#55AA55"