# HG changeset patch # User Pantxo Diribarne # Date 1374529534 -7200 # Node ID f694f791709b16e0a708864133fc4e07de65bc29 # Parent 08dd9458684a8da3e143b27f9f2423553255ed3b hggroup.m: Update to use new __plt_get_axis_arg__. * scripts/plot/hggroup.m: Update to use new __plt_get_axis_arg__. diff -r 08dd9458684a -r f694f791709b scripts/plot/hggroup.m --- a/scripts/plot/hggroup.m Wed Jul 24 23:05:37 2013 -0700 +++ b/scripts/plot/hggroup.m Mon Jul 22 23:45:34 2013 +0200 @@ -32,12 +32,16 @@ function h = hggroup (varargin) - [ax, varargin] = __plt_get_axis_arg__ ("hggroup", varargin{:}); - - tmp = __go_hggroup__ (ax, varargin{:}); + [hax, varargin] = __plt_get_axis_arg__ ("hggroup", varargin{:}); + + if (isempty (hax)) + hax = gca (); + endif + + htmp = __go_hggroup__ (hax, varargin{:}); if (nargout > 0) - h = tmp; + h = htmp; endif endfunction