view centerColorbar.m @ 672:82024d32e333 feature/d1_staggered

Correct char BC in staggered acoustics 1D variable coeff.
author Martin Almquist <malmquist@stanford.edu>
date Wed, 27 Dec 2017 21:16:06 +0100
parents 14f2be4fe9c1
children
line wrap: on
line source

function centerColorbar(ah)
    old = ah.CLim;

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