Mercurial > hg > octave-nkf
changeset 17037:f694f791709b
hggroup.m: Update to use new __plt_get_axis_arg__.
* scripts/plot/hggroup.m: Update to use new __plt_get_axis_arg__.
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Mon, 22 Jul 2013 23:45:34 +0200 |
parents | 08dd9458684a |
children | db90efd8f32b |
files | scripts/plot/hggroup.m |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/hggroup.m +++ b/scripts/plot/hggroup.m @@ -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