view centerColorbar.m @ 943:21394c78c72e feature/utux2D

Merge with default
author Martin Almquist <malmquist@stanford.edu>
date Tue, 04 Dec 2018 15:24:36 -0800
parents 14f2be4fe9c1
children
line wrap: on
line source

function centerColorbar(ah)
    old = ah.CLim;

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