www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgsurfview/@surfaceplot/optionsChanged.m
function optionsChanged(obj) %OPTIONSCHANGED Updates the plot to reflect changes in the options % % obj.optionsChanged % Copyright 2000-2013 The MathWorks, Inc. and Ford Global Technologies, Inc. options = obj.PlotOptions; if isgraphics(obj.hAxes) set(obj.hAxes,'Box',options.box,... 'XGrid',options.grid,'YGrid',options.grid,'ZGrid',options.grid); end if isgraphics(obj.hSurface1) set(obj.hSurface1,... 'EdgeColor',options.edgecolor); end if isgraphics(obj.hSurface2) set(obj.hSurface2,... 'EdgeColor',options.edgecolor); end if ~isempty(obj.PlotData) obj.pSetZRange; end % No action required for change in LinkRotation