% subplot(121);

% data = load('1hz.txt');

% xlabel('Frequency bins');

% ylabel('Number of events');

% draw_hist_poisson;

% title('Poisson ~1Hz data and theor. distr.');

% grid on;

% xlim([-0.5 4]);

% 

% subplot(122);

% data = load('4hz.txt');

% xlabel('Frequency bins');

% ylabel('Number of events');

% draw_hist_poisson;

% title('Poisson ~4Hz data and theor. distr.');

% grid on;

% xlim([-0.5 8]);



subplot(121);

data = load('10hz.txt');

draw_hist_poisson;

xlabel('Frequency bins');

ylabel('Number of events');

title('Poisson ~10Hz data and theor. distr.');

grid on;



subplot(122);

data = load('100hz.txt');

draw_hist_poisson;

xlabel('Frequency bins');

ylabel('Number of events');

title('Poisson ~100Hz data and theor. distr.');

grid on;