diff scripts/plot/axes.m @ 6688:b26a8e0e42cd

[project @ 2007-06-04 06:25:21 by jwe]
author jwe
date Mon, 04 Jun 2007 06:25:21 +0000
parents b298a4c12fc3
children 05f6f120a65f
line wrap: on
line diff
--- a/scripts/plot/axes.m
+++ b/scripts/plot/axes.m
@@ -34,7 +34,7 @@
     cf = gcf ();
     tmp = __go_axes__ (cf, varargin{:});
     set (cf, "currentaxes", tmp);
-  elseif (nargin == 1)
+  else
     ## arg is axes handle, make it the current axes for the current
     ## figure.
     tmp = varargin{1};
@@ -45,8 +45,6 @@
     else
       error ("axes: expecting argument to be axes handle");
     endif
-  else
-    print_usage ();
   endif
 
   if (nargout > 0)