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

    function optionsChanged(obj)
%OPTIONSCHANGED Updates the plot to reflect changes in the options
%
%  OPTIONSCHANGED(OBJ) is called by the options obejct when changes have
%  been made.

%  Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc.


set(obj.hCheckBox,'Value', 1);
g = obj.PlotOptions.grid;
set(obj.hAxes,'XGrid',g,'YGrid',g,'ZGrid',g);
obj.contour_values = obj.PlotOptions.numlines;
obj.pReplot;