view centerColorbar.m @ 633:6f4eb3da8978 bugfix/TiVectorInputs

Flip input and outputs if they are columnvectors.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 23 Oct 2017 16:29:52 +0200
parents 14f2be4fe9c1
children
line wrap: on
line source

function centerColorbar(ah)
    old = ah.CLim;

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