function making_figure_panel_aug1_2007

tic
[little,plittle]=create_basic_text_file('patch20070322T000850',1);
[big,pbig]=create_basic_text_file('patch20070321T234702',1);

little=little*100;
l=little(45970:end,6);
l=l-mean(l(1:4500));
ll=l;
ll([5000 5001 5021 5022 5500 5501 5521 5522 9500 9501 9521 9522 10001 10021 10022])=0;

big=big*1000;
b=big(32964:end,1);
b=b-mean(b(1:4500));
bb=b;
bb([5001 5051])=0;

figure, plot(bb,'color','k','linewidth',.5),hold on, plot(ll,'k','linewidth',.5)
axis([4000 14000 -1500 200]),rectangle('position',[4750 -20 900 31],'linewidth',.1,'facecolor','k','edgecolor','k')%,set(findobj('type','line'),'linewidth',2)
set(gca,'xtick',[5000 7500 10000 12500]),set(gca,'xticklabel',[0 250 500 1000]),xlabel('Time (ms)')
set(gca,'ytick',[-1000 -500 0]),set(gca,'yticklabel',[-1 -0.5 0]),ylabel('Membrane current (nA)')

figure, plot(ll,'k','linewidth',2),axis([4750 5499 -20 10])%,set(findobj('type','line'),'linewidth',2)
set(gca,'xtick',[4800 5000 5200 5400]),set(gca,'xticklabel',[-20 0 20 40]),xlabel('Time (ms)')
set(gca,'yaxislocation','right')
set(gca,'ytick',[-10 0]),ylabel('Membrane current (pA)')

%downsampled version
downsamplestep=10
figure, plot([1:downsamplestep:length(bb)],bb([1:downsamplestep:length(bb)]),'color','k','linewidth',.1),hold on, plot([1:downsamplestep:length(ll)],ll([1:downsamplestep:length(ll)]),'k','linewidth',.1)
axis([4000 14000 -1500 200]),rectangle('position',[4750 -20 900 31],'linewidth',.1,'facecolor','k','edgecolor','k')%,set(findobj('type','line'),'linewidth',2)
set(gca,'xtick',[5000 7500 10000 12500]),set(gca,'xticklabel',[0 250 500 1000]),xlabel('Time (ms)')
set(gca,'ytick',[-1000 -500 0]),set(gca,'yticklabel',[-1 -0.5 0]),ylabel('Membrane current (nA)')

toc