view centerColorbar.m @ 909:ab1759166a8c feature/utux2D

Bugfix in InterfaceOptions.setOption
author Martin Almquist <malmquist@stanford.edu>
date Fri, 23 Nov 2018 20:21:28 -0800
parents 14f2be4fe9c1
children
line wrap: on
line source

function centerColorbar(ah)
    old = ah.CLim;

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