diff scripts/plot/fill.m @ 7216:5389a52df87b

[project @ 2007-11-29 19:07:29 by jwe]
author jwe
date Thu, 29 Nov 2007 19:07:29 +0000
parents dd88d61d443f
children eb7bdde776f2
line wrap: on
line diff
--- a/scripts/plot/fill.m	Thu Nov 29 16:46:40 2007 +0000
+++ b/scripts/plot/fill.m	Thu Nov 29 19:07:29 2007 +0000
@@ -25,11 +25,13 @@
 ## Create one or more filled patch objects, returning a patch object for each.
 ## @end deftypefn
 
-function h = fill (varargin)
+function retval = fill (varargin)
 
   [h, varargin] = __plt_get_axis_arg__ ("fill", varargin{:});
+
   htmp = [];
   iargs = __find_patches__ (varargin{:});
+
   oldh = gca ();
   unwind_protect
     axes (h);
@@ -52,7 +54,7 @@
   end_unwind_protect
 
   if (nargout > 0)
-    h = htmp;
+    retval = htmp;
   endif
 
 endfunction