Mercurial > octave
comparison scripts/plot/quiver3.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 | d65670971cbc |
children | 873ea2c72f16 |
comparison
equal
deleted
inserted
replaced
8055:d51c3541be28 | 8056:9a6f4713f765 |
---|---|
41 ## in a similar manner to the line styles used with the @code{plot} command. | 41 ## in a similar manner to the line styles used with the @code{plot} command. |
42 ## If a marker is specified then markers at the grid points of the vectors are | 42 ## If a marker is specified then markers at the grid points of the vectors are |
43 ## printed rather than arrows. If the argument 'filled' is given then the | 43 ## printed rather than arrows. If the argument 'filled' is given then the |
44 ## markers as filled. | 44 ## markers as filled. |
45 ## | 45 ## |
46 ## The optional return value @var{h} provides a list of handles to the | 46 ## The optional return value @var{h} provides a quiver group that |
47 ## the parts of the vector field (body, arrow and marker). | 47 ## regroups the components of the quiver plot (body, arrow and marker), |
48 ## and allows them to be changed together | |
48 ## | 49 ## |
49 ## @example | 50 ## @example |
50 ## @group | 51 ## @group |
51 ## [x, y, z] = peaks (25); | 52 ## [x, y, z] = peaks (25); |
52 ## surf (x, y, z); | 53 ## surf (x, y, z); |
53 ## hold on; | 54 ## hold on; |
54 ## [u, v, w] = surfnorm (x, y, z / 10); | 55 ## [u, v, w] = surfnorm (x, y, z / 10); |
55 ## quiver3 (x, y, z, u, v, w); | 56 ## h = quiver3 (x, y, z, u, v, w); |
57 ## set (h, "maxheadsize", 0.33); | |
56 ## @end group | 58 ## @end group |
57 ## @end example | 59 ## @end example |
58 ## | 60 ## |
59 ## @seealso{plot} | 61 ## @seealso{plot} |
60 ## @end deftypefn | 62 ## @end deftypefn |
94 %!demo | 96 %!demo |
95 %! [x, y, z] = peaks (25); | 97 %! [x, y, z] = peaks (25); |
96 %! surf (x, y, z); | 98 %! surf (x, y, z); |
97 %! hold on; | 99 %! hold on; |
98 %! [u, v, w] = surfnorm (x, y, z / 10); | 100 %! [u, v, w] = surfnorm (x, y, z / 10); |
99 %! quiver3 (x, y, z, u, v, w); | 101 %! h = quiver3 (x, y, z, u, v, w); |
102 %! set (h, "maxheadsize", 0.33); |