coneplot
Plot velocity vectors as cones in 3-D vector field
Syntax
coneplot(X,Y,Z,U,V,W,Cx,Cy,Cz)
coneplot(U,V,W,Cx,Cy,Cz)
coneplot(...,s)
coneplot(...,color)
coneplot(...,'quiver')
coneplot(...,'method
')
coneplot(X,Y,Z,U,V,W,'nointerp')
coneplot(axes_handle,...)
h = coneplot(...)
Description
coneplot(X,Y,Z,U,V,W,Cx,Cy,Cz)
plots velocity vectors as cones pointing in the direction of the velocity vector and having a length proportional to the magnitude of the velocity vector.X
,Y
,Z
define the coordinates for the vector field.U
,V
,W
define the vector field. These arrays must be the same size, monotonic, and represent a Cartesian, axis-aligned grid (such as the data produced bymeshgrid
).Cx
,Cy
,Cz
define the location of the cones in the vector field. The sectionSpecifying Starting Points for Stream Plotsin Visualization Techniques provides more information on defining starting points.
coneplot(U,V,W,Cx,Cy,Cz)
(omitting theX
,Y
, andZ
arguments) assumes[X,Y,Z] = meshgrid(1:n,1:m,1:p)
, where[m,n,p]= size(U)
.
coneplot(...,s)
automatically scales the cones to fit the graph and then stretches them by the scale factors
. If you do not specify a value fors
,coneplot
uses a value of 1. Uses = 0
to plot the cones without automatic scaling.
coneplot(...,color)
interpolates the arraycolor
onto the vector field and then colors the cones according to the interpolated values. The size of thecolor
array must be the same size as theU
,V
,W
arrays. This option works only with cones (that is, not with thequiver
option).
coneplot(...,'quiver')
draws arrows instead of cones (seequiver3
for an illustration of a quiver plot).
coneplot(...,'
specifies the interpolation method to use.method
')method
can belinear
,cubic
, ornearest
.linear
is the default. (Seeinterp3
for a discussion of these interpolation methods.)
coneplot(X,Y,Z,U,V,W,'nointerp')
does not interpolate the positions of the cones into the volume. The cones are drawn at positions defined byX
,Y
,Z
and are oriented according toU
,V
,W
. ArraysX
,Y
,Z
,U
,V
,W
must all be the same size.
coneplot(axes_handle,...)
plots into the axes with the handleaxes_handle
instead of into the current axes (gca
).
h = coneplot(...)
returns the handle to thepatch
object used to draw the cones.
coneplot
automatically scales the cones to fit the graph, while keeping them in proportion to the respective velocity vectors.