www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgsurfview/@contourplot/pPostSetVisible.m

    function val = pPostSetVisible(obj, val)
%PPOSTSETVISIBLE Respond to visible being set
%
%  PPOSTSETVISIBLE(OBJ, EVT) is called after the object's visible
%  property has been set.

%  Copyright 2007-2010 The MathWorks, Inc.


obj.super('pPostSetVisible', val);

% Fix the clim on the axes - this often doesn't update when the contours
% are made visible.
if isequal(get(obj.hAxes, 'CLim'), [0 1])
    set(obj.hAxes, 'CLimMode', 'manual');
    set(obj.hAxes, 'CLimMode', 'auto');
end