changeset 11623:d00dcbc03a4c release-3-0-x

[3-0-0-branch @ 2008-01-28 09:13:19 by jwe]
author jwe
date Mon, 28 Jan 2008 09:13:19 +0000
parents fe5250e05ceb
children 81f0e11253e9
files scripts/ChangeLog scripts/plot/xlabel.m scripts/plot/ylabel.m scripts/plot/zlabel.m
diffstat 4 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-28  Michael Goffioul <michael.goffioul@gmail.com>
+
+	* plot/xlabel.m, plot/ylabel.m, plot/zlabel.m:
+	Return the label handle, not the current axis handle.
+
 2008-01-25  James Packer  <james.packer@wadh.ox.ac.uk>
 
 	* geometry/griddata3.m: Call griddata, not gridata.
--- a/scripts/plot/xlabel.m
+++ b/scripts/plot/xlabel.m
@@ -49,7 +49,7 @@
   end_unwind_protect
 
   if (nargout > 0)
-    retval = h;
+    retval = tmp;
   endif
 
 endfunction
--- a/scripts/plot/ylabel.m
+++ b/scripts/plot/ylabel.m
@@ -44,7 +44,7 @@
   end_unwind_protect
 
   if (nargout > 0)
-    retval = h;
+    retval = tmp;
   endif
 
 endfunction
--- a/scripts/plot/zlabel.m
+++ b/scripts/plot/zlabel.m
@@ -44,7 +44,7 @@
   end_unwind_protect
 
   if (nargout > 0)
-    retval = h;
+    retval = tmp;
   endif
 
 endfunction