www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mvgraph4d/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 main axes always ax = xregGui.HGPlotCopy(obj.axes, fig); ax = mbcgui.widget.AxesContainer('AxesHandle', ax, 'Border', [60 50 30 30]); % add colorbar axcol=copyobj(obj.colorbar.axes,fig); set(axcol, 'HandleVisibility', 'off'); set(get(axcol,'Children'),'ButtonDownFcn','','UserData',[]); axcol = mbcgui.widget.AxesContainer('AxesHandle', axcol, 'Border', [0 50 40 30]); LYT=xreggridlayout(fig,'correctalg','on',... 'dimension',[1 2],... 'colsizes',[-1 60],... 'elements',{ax,axcol});