function fig = fighndl(h)
%FIGHNDL  Gets handle of parent container.

%   Copyright 1986-2004 The MathWorks, Inc.
%   $Revision: 1.1.6.3 $ $Date: 2004/11/18 23:42:03 $

if isa(h.Axes(1),'hg.axes')
   fig = h.Axes(1).Parent;
else
   fig = fighndl(h.Axes(1));
end
