function colormap_fc(colormapChosen)

colorbars_IN = findall(gcf , 'Tag' , 'Colorbar');

if ~isempty(colorbars_IN);
    CDATA_IN = cell(size(colorbars_IN));
    for idx = 1:length(colorbars_IN);
        child = get(colorbars_IN(idx) , 'Children');
        CDATA_IN{idx} = get(child , 'CDATA');
        clear child;
    end;
end;

colormap(colormapChosen);

colorbars_OUT = findall(gcf , 'Tag' , 'Colorbar');

if ~isempty(colorbars_OUT);
    for idx = 1:length(colorbars_OUT);
        child = get(colorbars_OUT(idx) , 'Children');
        set(child , 'CDATA' , CDATA_IN{idx});
        clear child;
    end;
end;


