function val = get(A, varargin)
%AXISTEXT/GET

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 1.5 $  $Date: 1997/12/06 00:40:11 $
%   J.H. Roh & B.A. Jones 4-25-97.


HGObj = A.axischild;

if nargin == 2
   switch varargin{1}
   case 'XData'
      val = get(HGObj,'Position');
      val = val(1);
   case 'YData'
      val = get(HGObj,'Position');
      val = val(2);
   otherwise
      val = get(HGObj, varargin{:});
   end
else
   val = get(HGObj, varargin{:});
end

