function setposition(h,varargin)
%SETPOSITION   Sets axes group position.

%   Author(s): P. Gahinet
%   Copyright 1986-2004 The MathWorks, Inc.
%   $Revision: 1.1.6.3 $ $Date: 2004/08/01 00:08:15 $

% Grid position: delegate to @plotarray object
% Scaled Resize (for printing)

% Only adjust label positions during print resize
if strcmp(h.PrintLayoutManager,'off')
    h.Axes.setposition(h.Position);
    % Background axes
    set(h.BackgroundAxes,'Position',h.Position)
    % Adjust label position
end
labelpos(h);