comparison scripts/plot/axis.m @ 3979:e0b7a493e5a8

[project @ 2002-07-10 17:45:34 by jwe]
author jwe
date Wed, 10 Jul 2002 17:45:34 +0000
parents b0a68efa1295
children 22bd65326ec1
comparison
equal deleted inserted replaced
3978:10bc4c350d61 3979:e0b7a493e5a8
112 ## @end table 112 ## @end table
113 ## @end deftypefn 113 ## @end deftypefn
114 114
115 ## Author: jwe 115 ## Author: jwe
116 116
117 function curr_axis = axis (ax, ...) 117 function curr_axis = axis (ax, varargin)
118 118
119 ## This may not be correct if someone has used the gnuplot interface 119 ## This may not be correct if someone has used the gnuplot interface
120 ## directly... 120 ## directly...
121 121
122 global __current_axis__ = [-10, 10, -10, 10]; 122 global __current_axis__ = [-10, 10, -10, 10];
257 else 257 else
258 error ("axis: expecting no args, or a vector with 2, 4, or 6 elements"); 258 error ("axis: expecting no args, or a vector with 2, 4, or 6 elements");
259 endif 259 endif
260 260
261 if (nargin > 1) 261 if (nargin > 1)
262 axis(all_va_args); 262 axis (varargin{:});
263 endif 263 endif
264 endfunction 264 endfunction
265 265
266 %!demo 266 %!demo
267 %! t=0:0.01:2*pi; x=sin(t); 267 %! t=0:0.01:2*pi; x=sin(t);