2020-05-11 00:13:51 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
from pylab import *
|
|
|
|
import sys
|
|
|
|
|
|
|
|
rcParams['font.size'] = 12
|
|
|
|
|
|
|
|
n = int(input())
|
|
|
|
a, b, f = loadtxt(sys.stdin, unpack=True)
|
|
|
|
|
|
|
|
subplot(121)
|
|
|
|
title('FFT')
|
2020-05-13 01:15:30 +02:00
|
|
|
xlabel('EDM distance')
|
|
|
|
ylabel('counts')
|
2020-05-11 00:13:51 +02:00
|
|
|
hist(a[:n], insert(b[:n], 0, a[0]), weights=f[:n],
|
|
|
|
histtype='stepfilled', color='#e3c5ca', edgecolor='#92182b')
|
|
|
|
ticklabel_format(style='sci', axis='x', scilimits=(0, 0))
|
|
|
|
|
|
|
|
subplot(122)
|
|
|
|
title('RL')
|
2020-05-13 01:15:30 +02:00
|
|
|
xlabel('EDM distance')
|
|
|
|
ylabel('counts')
|
2020-05-11 00:13:51 +02:00
|
|
|
hist(a[n:], insert(b[n:], 0, a[n]), weights=f[n:],
|
|
|
|
histtype='stepfilled', color='#e3c5ca', edgecolor='#92182b')
|
|
|
|
ticklabel_format(style='sci', axis='x', scilimits=(0, 0))
|
|
|
|
|
|
|
|
tight_layout()
|
|
|
|
show()
|