comparison scripts/plot/plot.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 a8ce6bdecce5
children 3140cb7a05a1
comparison
equal deleted inserted replaced
10729:172253d75d94 10730:390d93e20531
177 177
178 ## Author: jwe 178 ## Author: jwe
179 179
180 function retval = plot (varargin) 180 function retval = plot (varargin)
181 181
182 [h, varargin] = __plt_get_axis_arg__ ("plot", varargin{:}); 182 [h, varargin, nargs] = __plt_get_axis_arg__ ("plot", varargin{:});
183
184 if (nargs < 1)
185 print_usage();
186 endif
183 187
184 oldh = gca (); 188 oldh = gca ();
185 unwind_protect 189 unwind_protect
186 axes (h); 190 axes (h);
187 newplot (); 191 newplot ();