view centerColorbar.m @ 459:1147db8a2ffa feature/grids

Merge with default
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 19 Jun 2017 09:42:59 +0200
parents 14f2be4fe9c1
children
line wrap: on
line source

function centerColorbar(ah)
    old = ah.CLim;

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