# HG changeset patch # User Pantxo Diribarne # Date 1374527294 -7200 # Node ID 854cfc72c64fae5de1ee9b3da5a9744ffbaea4b3 # Parent db90efd8f32b15f5c85937159a10b6a1146c93eb patch.m: Update to use new __plt_get_axis_arg__. * scripts/plot/patch.m: Update to use new __plt_get_axis_arg__. diff -r db90efd8f32b -r 854cfc72c64f scripts/plot/patch.m --- a/scripts/plot/patch.m Wed Jul 24 23:12:28 2013 -0700 +++ b/scripts/plot/patch.m Mon Jul 22 23:08:14 2013 +0200 @@ -45,16 +45,20 @@ function retval = patch (varargin) - [h, varargin] = __plt_get_axis_arg__ ("patch", varargin{:}); - - [tmp, failed] = __patch__ (h, varargin{:}); + [hax, varargin] = __plt_get_axis_arg__ ("patch", varargin{:}); + + if (isempty (hax)) + hax = gca (); + endif + + [htmp, failed] = __patch__ (hax, varargin{:}); if (failed) print_usage (); endif if (nargout > 0) - retval = tmp; + retval = htmp; endif endfunction