view centerColorbar.m @ 924:93a5c59dd2fb feature/utux2D

Add helper function multiblock.SetAllInterfaceOptions.
author Martin Almquist <malmquist@stanford.edu>
date Sun, 02 Dec 2018 17:25:08 -0800
parents 14f2be4fe9c1
children
line wrap: on
line source

function centerColorbar(ah)
    old = ah.CLim;

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