Functions | |
if (nargin==0) print_usage() | |
elseif (nargin==1||(nargin==2 &&!isnumeric(varargin{2}))) ioff | |
elseif (nargin > 1 &&isnumeric(varargin{2})) ioff | |
while (ioff<=nargin) arg | |
if ((ischar(arg)||iscell(arg))&&!have_line_spec)[linespec | |
if (valid) line_spec | |
else | error ("feather: invalid linespec") |
endif else | error ("feather: unrecognized argument") |
id | arrowsize () |
newplot () | |
unwind_protect_cleanup | axes (oldh) |
end_unwind_protect | if (nargout > 0) retval |
Variables | |
function | retval |
arrowsize = 0.25 | |
z = varargin{1}(:).' | |
u = real (z) | |
v = imag (z) | |
endif | line_spec = "b-" |
have_line_spec = false | |
valid = __pltopt__ ("feather", arg, false) | |
break | |
endif endwhile | n = length (u) |
xend = [1 : n] + u | |
xtmp = [1 : n] + u .* (1 - arrowsize) | |
yend = v | |
ytmp = v .* (1 - arrowsize) | |
x = [[1 : n] | |
y = [zeros(1, n) | |
oldh = gca () | |
unwind_protect | axes (h) |
hlist = plot (h, x, y, line_spec, [1, n], [0, 0], line_spec) | |
endif endfunction!demo | !phi = [0 : 15 : 360] * pi / 180 |
id arrowsize | ( | ) | [virtual] |
elseif | ( | nargin | , | |
1 && | isnumericvarargin{2} | |||
) |
end_unwind_protect if | ( | nargout | , | |
0 | ||||
) |
if | ( | valid | ) |
if | ( | (ischar(arg)||iscell(arg))&&! | have_line_spec | ) |
if | ( | nargin | = =0 |
) |
newplot | ( | ) |
while | ( | ioff<= | nargin | ) |
endif endfunction !demo !phi = [0 : 15 : 360] * pi / 180 |
arrowsize = 0.25 |
break |
have_line_spec = false |
oldh = gca () |
function retval |
u = real (z) |
v = imag (z) |
valid = __pltopt__ ("feather", arg, false) |
x = [[1 : n] |
y = [zeros(1, n) |
yend = v |
ytmp = v .* (1 - arrowsize) |
z = varargin{1}(:).' |