function psc_peaks=plot_natural_oligobouton_waveforms(raw_traces)
%called from command line, used to plot natural waveforms

clf
wind=[25000:25130];
clr=colormap(jet(size(raw_traces,2)));
psc_peaks=[]

for sweep=1:size(raw_traces,2)
    if isempty(find(sweep==[2 6 13 14 15 16 17 19 23 27 31 33]))
        m=raw_traces(:,sweep)-mean(raw_traces(1:2000,sweep));
        m=movingwindowsmooth(m,10);
        m=m(wind);
        m=m-mean(m([4:7 24:36]));
        plot(m,'color',clr(sweep,:),'linewidth',2)
        hold on
        xval=ceil(rand*10);text([xval:10:length(wind)],m([xval:10:length(wind)]),num2str(sweep))
        psc_peaks=[psc_peaks min(m)];
        end
end


% text([1:downsamplestep:size(waveform_matrix_preinduc,2)],current_sweep_preinduc([1:downsamplestep:size(waveform_matrix_preinduc,2)]),
%     num2str(((k-1)+number_of_APs)/number_of_APs),'fontsize',12,'color','k'),hold on,end