view centerColorbar.m @ 1218:50102334c85b feature/d2_compatible

Merge with default
author Martin Almquist <malmquist@stanford.edu>
date Wed, 13 Nov 2019 15:35:27 -0800
parents 14f2be4fe9c1
children
line wrap: on
line source

function centerColorbar(ah)
    old = ah.CLim;

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