function plot_spikes(v)

colors = get(gca,'ColorOrder');

[rows,cols] = size(v);

hold on
for i = 1:cols
  [x,y] = spike_wave(v(:,i));
  plot(x,y,'Color',colors(i,:))
end

