view centerColorbar.m @ 839:a4669d961d26

Add license file and a short readme
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 18 Sep 2018 15:48:36 +0200
parents 14f2be4fe9c1
children
line wrap: on
line source

function centerColorbar(ah)
    old = ah.CLim;

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