view centerColorbar.m @ 1271:b5025bd67be1 feature/poroelastic

Allow using D1 D1 in VariableAnisotropicUpwind
author Martin Almquist <malmquist@stanford.edu>
date Sun, 31 May 2020 21:58:40 -0700
parents 14f2be4fe9c1
children
line wrap: on
line source

function centerColorbar(ah)
    old = ah.CLim;

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