view centerColorbar.m @ 400:14f2be4fe9c1 feature/beams

Add function to center colorlimits.
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 31 Jan 2017 13:23:52 +0100
parents
children
line wrap: on
line source

function centerColorbar(ah)
    old = ah.CLim;

    l = max(abs(old));
    ah.CLim = [-l l];
end