gradplot - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : 2-D : gradplot

plots

  

gradplot

  

plot a 2-D gradient vector field

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

gradplot(f, r1, r2, options)

gradplot(f, r1, r2,..., options)

Parameters

f

-

function or set of function to be plotted

r1

-

range

r2

-

range

options

-

options that control the behavior of the gradplot

Description

• 

A typical call to the gradplot function is gradplot(f, x=a..b, y=c..d), where f is a Maple expression in x and y, and a..b and c..d  specifies the horizontal and vertical ranges of the field. The result is a two dimensional vectorfield with the gradient vector evaluated at (x, y) located at this point.

• 

A call to gradplot produces a PLOT data structure, which is then printed.  For information on these data structures, see plot/structure.

• 

Remaining arguments are interpreted as options which are specified as equations of the form option = value.  In particular, the arrows, grid, fieldstrength, clipping, and anchor options listed on the fieldplot help page are available, and all other options are interpreted as by the plot command. For more information, see plot/options.

• 

gradplot may be defined by with(plots) or with(plots,gradplot). It can also be used by the name plots[gradplot] .

Examples

withplots:

gradplotx2+y2+112,x=2..2,y=2..2

gradplotx2+2y2+1,x=1..1,y=1..1,grid=15,15,color=x2+2y2+1

The command to create the plot from the Plotting Guide is

gradplotsinxy,x=π..π,y=π..π,arrows=SLIM,grid=8,8

See Also

plot

plot/function

plot/option

plot/range

plot/structure

Student[MultivariateCalculus][Gradient]

Student[VectorCalculus][Gradient]

VectorCalculus[Gradient]