WLJS LogoWLJS Notebook

VectorDensityPlot

VectorDensityPlot[{{vx, vy}, r}, {x, xmin, xmax}, {y, ymin, ymax}] generates vectors superimposed on a density plot of scalar field r.

Examples

Vector field with density:

VectorDensityPlot[{{-y, x}, x^2 + y^2}, {x, -2, 2}, {y, -2, 2}]

Using magnitude as density:

VectorDensityPlot[{x, y}, {x, -2, 2}, {y, -2, 2}]

Please visit the official Wolfram Language Reference for more details.

On this page