view centerColorbar.m @ 951:a6c5e73ff44e

Better errors in Map()
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 07 Dec 2018 16:10:58 +0100
parents 14f2be4fe9c1
children
line wrap: on
line source

function centerColorbar(ah)
    old = ah.CLim;

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