diff scripts/plot/private/__plt__.m @ 10730:390d93e20531

Plot commands now print usage information without errors when called with no arguments (bug #29986).
author Rik <octave@nomad.inbox5.com>
date Thu, 24 Jun 2010 12:22:27 -0700
parents ca6d8a38d298
children e81914f3921f
line wrap: on
line diff
--- a/scripts/plot/private/__plt__.m	Thu Jun 24 14:39:32 2010 +0200
+++ b/scripts/plot/private/__plt__.m	Thu Jun 24 12:22:27 2010 -0700
@@ -109,11 +109,7 @@
     endwhile
 
   else
-    msg = sprintf ("%s (y)\n", caller);
-    msg = sprintf ("%s       %s (x, y, ...)\n", msg, caller);
-    msg = sprintf ("%s       %s (x, y, fmt, ...)\n", msg, caller);
-    msg = sprintf ("%s       %s (x, y, property, value, ...)", msg, caller);
-    usage (msg);
+    error ("__plt__: invalid number of arguments");
   endif
 
 endfunction