VectorDensityPlot

VectorDensityPlot[{{vx,vy},s},{x,xmin,xmax},{y,ymin,ymax}]

generates a vector plot of the vector field {vx,vy} as a function of x and y, superimposed on a density plot of the scalar field s.

VectorDensityPlot[{vx,vy},{x,xmin,xmax},{y,ymin,ymax}]

takes the scalar field to be the norm of the vector field.

VectorDensityPlot[{{vx,vy},{wx,wy},,s},{x,xmin,xmax},{y,ymin,ymax}]

plots several vector fields.

VectorDensityPlot[,{x,y}reg]

takes the variables {x,y} to be in the geometric region reg.

Details and Options

Examples

open allclose all

Basic Examples  (4)

Plot the vector field {y,-x} with background color based on the field magnitude:

In[1]:=
Click for copyable input
Out[1]=

Plot two vector fields with background color based on the first field's magnitude:

In[1]:=
Click for copyable input
Out[1]=

Plot two vector fields with background color based on the function x+y:

In[1]:=
Click for copyable input
Out[1]=

Use a plot theme with minimal styling:

In[1]:=
Click for copyable input
Out[1]=

Scope  (20)

Options  (121)

Applications  (3)

Properties & Relations  (7)

Neat Examples  (1)

See Also

VectorPlot  StreamPlot  ListVectorPlot  LineIntegralConvolutionPlot  DensityPlot  ParametricPlot  ContourPlot  Plot3D  VectorPlot3D

Introduced in 2008
(7.0)
| Updated in 2014
(10.0)