close all

base = 'Z:\jon';

fids = {
    [base '/2014_01_28_Tooth-25019_1-minute-clamps-and-replay_oc-v1.1/2014_01_28_Tooth-25019_mode0_Ti_00_summary_00.fig']
    [base '/2014_01_28_Tooth-25019_1-minute-clamps-and-replay_oc-v1.1/2014_01_28_Tooth-25019_mode0_Ti_01_summary_00.fig']
    };

figs = {};
ax = {};

for i = 1:numel(fids)
    figs{i} =  open(fids{i});
    ax{i} = get(figs{i}, 'Children');
end

target_ax = ax{1};
this_ax = ax{2};
    
figure(figs{1})

ax2Children = get(this_ax(1),'Children');
copyobj(ax2Children, target_ax(1));
set(target_ax(1),'Xlim',[0.05 2000])

ax2Children = get(this_ax(2),'Children');
copyobj(ax2Children, target_ax(2));
ax2Children = get(this_ax(1),'Children');
copyobj(ax2Children, target_ax(1));
set(target_ax(1),'Xlim',[0.05 2000])


ax2Children = get(this_ax(12),'Children');
copyobj(ax2Children, target_ax(54));
ax2Children = get(this_ax(15),'Children');
copyobj(ax2Children, target_ax(55));
% ax2Children = get(this_ax(12),'Children');
% copyobj(ax2Children, target_ax(54));




close(figs{2})

% saveas(gcf, 'replay_mega-summary')
% export_fig('replay_mega-summary','-pdf','-transparent',gcf)