changeset 33491:95920a371532 bytecode-interpreter

maint: Merge default to bytecode-interpreter.
author Nicholas R. Jankowski <jankowski.nicholas@gmail.com>
date Mon, 29 Apr 2024 16:26:01 -0400
parents 593a2ebbc8da (current diff) 13695d1ea7f2 (diff)
children 83a2a9555534
files
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/draw/bar.m	Mon Apr 29 15:00:28 2024 -0400
+++ b/scripts/plot/draw/bar.m	Mon Apr 29 16:26:01 2024 -0400
@@ -113,6 +113,9 @@
 ## @end deftypefn
 
 function varargout = bar (varargin)
+  if (nargin < 1)
+    print_usage;
+  endif
   varargout = cell (nargout, 1);
   [varargout{:}] = __bar__ ("bar", true, varargin{:});
 endfunction
@@ -145,7 +148,7 @@
 %! title ("stacked bar() graph including intermingled negative values");
 
 %% Test input validation
-%!error bar ()
+%!error <Invalid call> bar ()
 %!error <Y must be numeric> bar ("foo")
 %!error <X must be a vector> bar ([1 2; 3 4], [1 2 3 4])
 %!error <X vector values must be unique> bar ([1 2 3 3], [1 2 3 4])