view centerColorbar.m @ 453:819345fe7ff1 feature/grids

Add function to multiblock.Grid for getting plot matrices
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 11 May 2017 10:09:52 +0200
parents 14f2be4fe9c1
children
line wrap: on
line source

function centerColorbar(ah)
    old = ah.CLim;

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