VectorDensityPlot

VectorDensityPlot[{{vx, vy}, s}, {x, xmin, xmax}, {y, ymin, ymax}]
generates a vector plot of the vector field 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.

Details and OptionsDetails and Options

ExamplesExamplesopen allclose all

Basic Examples (3)Basic Examples (3)

Plot the vector field 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 :

In[1]:=
Click for copyable input
Out[1]=
New in 7 | Last modified in 9
New to Mathematica? Find your learning path »
Have a question? Ask support »