diff scripts/plot/quiver.m @ 8056:9a6f4713f765

Add area, bar, quiver and stair series graphics objects. Document them
author David Bateman <dbateman@free.fr>
date Tue, 26 Aug 2008 11:58:14 -0400
parents dd88d61d443f
children ec4d9d657b17
line wrap: on
line diff
--- a/scripts/plot/quiver.m
+++ b/scripts/plot/quiver.m
@@ -43,13 +43,15 @@
 ## printed rather than arrows. If the argument 'filled' is given then the
 ## markers as filled.
 ##
-## The optional return value @var{h} provides a list of handles to the 
-## the parts of the vector field (body, arrow and marker).
+## The optional return value @var{h} provides a quiver group that
+## regroups the components of the quiver plot (body, arrow and marker),
+## and allows them to be changed together
 ##
 ## @example
 ## @group
 ## [x, y] = meshgrid (1:2:20);
-## quiver (x, y, sin (2*pi*x/10), sin (2*pi*y/10));
+## h = quiver (x, y, sin (2*pi*x/10), sin (2*pi*y/10));
+## set (h, "maxheadsize", 0.33);
 ## @end group
 ## @end example
 ##
@@ -81,7 +83,8 @@
 
 %!demo
 %! [x,y] = meshgrid(1:2:20);
-%! quiver(x,y,sin(2*pi*x/10),sin(2*pi*y/10))
+%! h = quiver(x,y,sin(2*pi*x/10),sin(2*pi*y/10))
+%! set (h, "maxheadsize", 0.33);
 
 %!demo
 %! axis("equal");