www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgsurfview/@lineplot/optionsChanged.m
function optionsChanged(obj) %OPTIONSCHANGED Updates the plot to reflect changes in the options % % obj.optionsChanged % Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc. if obj.PlotOptions.common_yrange % Get range of all data sets, considering only points inside % the boundary if there is one. range = getSiblingDataRange(obj.PlotData,[],true); if all(isfinite(range)) set(obj.hAxes,'YLim',range); if ~isempty(obj.hText) set(obj.hText,'Position',[0 mean(range) 0]); end end elseif isempty(obj.hText) set(obj.hAxes,'YLimMode','auto'); end if ~isempty(obj.hAxes) g = obj.PlotOptions.grid; set(obj.hAxes,'XGrid',g,'YGrid',g,'ZGrid',g); end