www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mvgraph1d/printcopy.m
function LYT=printcopy(obj,fig) %PRINTCOPY Create a printer-friendly copy of mvgraph1d % % LYT=PRINTCOPY(OBJ,FIG) % % Copyright 2000-2015 The MathWorks, Inc. and Ford Global Technologies, Inc. % copy 1d axis always ax1d=copyobj(obj.axes,fig); set(ax1d,'UserData',[]); facts=get(obj.factorsel,'String'); if ~isempty(facts) set(get(ax1d,'XLabel'),'String',facts{get(obj.factorsel,'Value')}); end ax1d=mbcgui.widget.AxesContainer('AxesHandle', ax1d, 'Border', [30 30 10 1]); ud = get(obj.axes, 'UserData'); if ud.HistOptions.Show axhist=copyobj(obj.hist.axes,fig); axhist=mbcgui.widget.AxesContainer('AxesHandle', axhist, 'Border', [30 1 10 0]); LYT=xreggridlayout(fig,'correctalg','on',... 'dimension',[2 1],... 'gapy',20,... 'rowsizes',[-1 36 ],... 'elements',{axhist,ax1d},... 'border',[0 15 0 30]); else % no histogram LYT=xreggridlayout(fig,'correctalg','on',... 'dimension',[3 1],... 'rowsizes',[-1 36 -1],... 'elements',{[],ax1d},... 'border',[0 15 0 20]); end