
for g = 1:9
subplot (3,3,g)
start = index(ii) - cutwind;
stop = index(ii) + cutwind;
plot(Epi.lfp.timestamps(start:stop), Epi.lfp.data(start:stop));
hold on
plot(Epi.lfp.timestamps(start:stop), Epi.signal((start):(stop)), 'r');
plot(Peaks_timestamps(ii),Epi.lfp.data(index(ii)),'og');
plot(Epi_Events.peaks(ii),Epi.lfp.data(initial_index(ii)),'oc');
scatter(Epi_Events.timestamps(ii,1),Epi_Events.peakNormedPower(ii));
scatter(Epi_Events.timestamps(ii,2),Epi_Events.peakNormedPower(ii));
title("event nr " + ii + " ")
axis tight
ii = ii+1;
end
