Documentation of ptpreparehg


Global Index (short | long) | Local contents | Local Index (short | long)


Function Synopsis

pt = preparehg( pt, h )

Help text

PREPAREHG Method of PrintTemplate object that formats a Figure for output.
   Input of PrintTemplate object and a Figure to modify on.
   Figure has numerous properites modifed to account for template settings.

Cross-Reference Information

This function is called by

Listing of function ptpreparehg

function pt = preparehg( pt, h )

%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 1.2 $  $Date: 2000/06/01 02:54:03 $

if pt.DebugMode
    disp(['Preparing Figure ' num2str(h)])
    pt
end

theAxes = findall( h, 'type', 'axes' );

% Output Axes with same tick MARKS as on screen
if pt.AxesFreezeTicks
    pt.tickState.handles = theAxes; 
    pt.tickState.values = get(theAxes, {'XTickMode','YTickMode','ZTickMode'} );
    set( pt.tickState.handles, {'XTickMode','YTickMode','ZTickMode'}, {'manual','manual','manual'})
end

% Output Axes with same tick LIMITS as on screen
if pt.AxesFreezeLimits
    pt.limState.handles = theAxes; 
    pt.limState.values = get(theAxes, {'XLimMode','YLimMode','ZLimMode'} );
    set( pt.limState.handles, {'XLimMode','YLimMode','ZLimMode'}, {'manual','manual','manual'})
end