diff --git a/ex-6/dist-plot.py b/ex-6/dist-plot.py index 0b5f801..16c3768 100755 --- a/ex-6/dist-plot.py +++ b/ex-6/dist-plot.py @@ -3,14 +3,14 @@ from pylab import * import sys -rcParams['font.size'] = 12 - n = int(input()) a, b, f = loadtxt(sys.stdin, unpack=True) +figure(figsize=(6.3, 3)) + subplot(131) title('FFT') -xlabel('EDM') +xlabel('EMD', x=0) ylabel('counts') hist(a[:n], insert(b[:n], 0, a[0]), weights=f[:n], histtype='stepfilled', color='#e3c5ca', edgecolor='#92182b') @@ -18,16 +18,12 @@ ticklabel_format(style='sci', axis='x', scilimits=(0, 0), useMathText=True) subplot(132) title('RL') -xlabel('EMD') -ylabel('counts') hist(a[n:2*n], insert(b[n:2*n], 0, a[n]), weights=f[n:2*n], histtype='stepfilled', color='#e3c5ca', edgecolor='#92182b') ticklabel_format(style='sci', axis='x', scilimits=(0, 0), useMathText=True) subplot(133) title('convolution') -xlabel('EMD') -ylabel('counts') hist(a[2*n:], insert(b[2*n:], 0, a[2*n]), weights=f[2*n:], histtype='stepfilled', color='#e3c5ca', edgecolor='#92182b') ticklabel_format(style='sci', axis='x', scilimits=(0, 0), useMathText=True) diff --git a/notes/images/emd-hist-0.005.pdf b/notes/images/emd-hist-0.005.pdf index 6fa0f0d..b0f5350 100644 Binary files a/notes/images/emd-hist-0.005.pdf and b/notes/images/emd-hist-0.005.pdf differ diff --git a/notes/images/emd-hist-0.01.pdf b/notes/images/emd-hist-0.01.pdf index 88825d7..042f617 100644 Binary files a/notes/images/emd-hist-0.01.pdf and b/notes/images/emd-hist-0.01.pdf differ diff --git a/notes/images/emd-hist-0.05.pdf b/notes/images/emd-hist-0.05.pdf index 829ffd0..57e7f3b 100644 Binary files a/notes/images/emd-hist-0.05.pdf and b/notes/images/emd-hist-0.05.pdf differ diff --git a/notes/images/emd-hist-0.pdf b/notes/images/emd-hist-0.pdf index c3b2aed..f2bcc5b 100644 Binary files a/notes/images/emd-hist-0.pdf and b/notes/images/emd-hist-0.pdf differ diff --git a/notes/images/plot.pdf b/notes/images/plot.pdf new file mode 100644 index 0000000..b3daabf Binary files /dev/null and b/notes/images/plot.pdf differ