www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mvgraph3d/printcopy.m

    function LYT=printcopy(obj,fig)
%PRINTCOPY  Create a printer-friendly copy of mvgraph3d
%
%  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);
set(ax,'UserData',[]);
ax = mbcgui.widget.AxesContainer('AxesHandle', ax, 'Border', [60 50 30 30]);

% add colorbar
axcol=copyobj(obj.colorbar.axes,fig);
set(axcol,'UserData',[], 'HandleVisibility', 'off');
set(get(axcol,'Children'),'ButtonDownFcn','');
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});