Plot a VectorCalculus object - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Vector Calculus : VectorCalculus/PlotVector

VectorCalculus[PlotVector] - Plot a VectorCalculus object

Calling Sequence

PlotVector(v, opts)

Parameters

v

-

Vector or list(Vector); specify which Vector(s) to plot

opts

-

(optional) plot options

Description

• 

The PlotVector(v) command takes a Vector or a list of Vectors, and plots them in the appropriate form:

– 

Free Vectors and rooted Vectors are plotted using plots[arrow]. Rooted Vectors are positioned correctly.

– 

Vector fields are plotted using plots[fieldplot] or plots[fieldplot3d]. If one or more ranges are missing in opts, a default range is applied.

• 

If v is a Vector, the plot options given in opts will be passed on to the appropriate plot command.

• 

If v is a list of Vectors, then the appropriate plotting command is invoked for each Vector in v with the plot options given in opts.

– 

To visually distinguish these Vectors in the plot, the colour plot option can be supplied as a list. If this is done, Vectors in v will be plotted using respective colours from this list.

– 

More precisely, for each Vector in v, the appropriate plotting command will be invoked with the respective element of this list as the colour option; other plot options in opts are passed normally. The colour list and the list of Vectors v must have the same size.

– 

Note that the colour option can also be given as color. For more information, please see plot/color and plot/colornames.

Examples

withVectorCalculus:

PlotVectorVectorField0,1,polarr,t,r=0..1,t=0..3π2,axes=normal

PlotVector1,1,1,1,1,1,color=yellow

PlotVector1,1,1,1,1,1,color=red,blue,green

The command to create the plot from the Plotting Guide is

vs1:=VectorSpace'cartesian',0,0:

vs2:=VectorSpace'cartesian',1,2:

PlotVectorvs1:-Vector1,2,vs1:-Vector3,2,vs2:-Vector2,0

vs1:=VectorSpace'cartesian',0,0,0:

vs2:=VectorSpace'cartesian',1,2,1:

PlotVectorvs1:-Vector1,2,1,vs1:-Vector3,2,1,vs2:-Vector2,0,0

See Also

plots[arrow], plots[fieldplot], VectorCalculus, VectorCalculus[VectorField], VectorCalculus[VectorSpace]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam