ListVectorPlot

ListVectorPlot[array]

generates a vector plot from an array of vector field values.

ListVectorPlot[{{{x1,y1},{vx1,vy1}},}]

generates a vector plot from vector field values {vxi,vyi} given at specified points {xi,yi}.

ListVectorPlot[{data1,data2,}]

plots data for several vector fields.

Details and Options

Examples

open allclose all

Basic Examples  (3)

Plot the vector field interpolated from a specified set of vectors:

Include a legend showing the vector magnitudes:

Use a drop-shaped marker to represent the vectors:

Scope  (14)

Sampling  (6)

Plot vectors for a regular collection of vectors, and give a data range for the domain:

Plot an irregular collection of vectors:

Show all of the specified field vectors:

Explicitly set the number of vectors in each direction:

Specify a list of points for showing field vectors:

Plot a vector field with vectors placed with specified densities:

Plot the vectors that go through a set of seed points:

Plot vectors over a specified region:

Presentation  (8)

Plot a vector field with arrows scaled according to their magnitudes:

Use a single color for the arrows:

Plot a vector field with arrows of specified size:

Plot a vector field with arrows colored according to the magnitude of the field:

Set the style for multiple vector fields:

Apply vector style:

Use a named appearance to draw the vectors:

Style the vectors as well:

Use a theme with more detail:

Combine the theme with a specific style for the vectors:

Options  (71)

AspectRatio  (2)

By default, the aspect ratio is 1:

Set the aspect ratio:

Background  (1)

Use colored backgrounds:

DataRange  (1)

By default, the data range is taken to be the index range of the data array:

Specify the data range for the domain:

EvaluationMonitor  (1)

Count the number of times the vector field function is evaluated:

FrameLabel  (1)

Label the frame:

PerformanceGoal  (2)

Generate a higher-quality plot:

Emphasize performance, possibly at the cost of quality:

PlotLegends  (2)

No legends are included by default:

Include a legend to show the color range of vector norms:

Add legends with placeholder text:

Specify labels for the legend:

Place the legend below the plot:

Control the appearance of the legend:

PlotRange  (7)

The full plot range is used by default:

Specify an explicit limit for both and ranges:

Specify an explicit range:

Specify an explicit minimum range:

Specify an explicit range:

Specify an explicit maximum range:

Specify different and ranges:

PlotTheme  (1)

Use a theme with gridlines, dark background and bold colors:

Change the VectorColorFunction:

RegionBoundaryStyle  (5)

Show the region defined by a region function:

The boundaries of full rectangular regions are not shown:

Use None to not show the boundary:

Omit the interior filling as well:

Specify a style for the boundary:

Specify a style for full rectangular regions:

RegionFillingStyle  (5)

Show the region defined by a region function:

The interior of full rectangular regions are not shown:

Use None to not show the interior filling:

Omit the boundary curve as well:

Specify a style for the interior filling:

Specify a style for full rectangular region:

RegionFunction  (3)

Plot vectors only over certain quadrants:

Plot vectors only over regions where the field magnitude is above a given threshold:

Use any logical combination of conditions:

VectorColorFunction  (4)

Color the vectors according to their norms:

Use any named color gradient from ColorData:

Color the vectors according to their values:

Use VectorColorFunctionScaling->False to get unscaled values:

VectorColorFunctionScaling  (4)

By default, scaled values are used:

Use VectorColorFunctionScaling->False to get unscaled values:

Use unscaled coordinates in the direction and scaled coordinates in the direction:

Explicitly specify the scaling for each color function argument:

VectorMarkers  (9)

Vectors are drawn as arrows by default:

Use a named appearance to draw the vectors:

Use different markers for different vector fields:

By default, markers are centered on vector points:

Start the vectors at the points:

End the vectors at the points:

Arrow vector markers:

Circular vector markers:

Dart vector markers:

Vector markers with dots:

Pointer vector markers:

VectorPoints  (8)

Use automatically determined vector points:

Show all of the specified field vectors:

Use symbolic names to specify the set of field vectors:

Create a regular grid of field vectors with the same number of arrows for and :

Create a regular grid of field vectors with a different number of arrows for and :

Specify a list of points for showing field vectors:

Use a different number of field vectors on a hexagonal grid:

The location for vectors is given in the middle of the drawn vector:

VectorRange  (4)

The clipping of vectors with very small or very large magnitudes is done automatically:

Specify the range of vector norms:

Suppress the clipped vectors:

Show all the vectors:

VectorScaling  (2)

Use automatically determined vector scales:

With the vector scaling function set to None, all vectors have the same size:

VectorSizes  (2)

The size of the displayed vector is determined automatically:

Specify the range of arrow lengths:

VectorStyle  (7)

VectorColorFunction has precedence over VectorStyle for colors:

Use VectorColorFunctionNone to style the displayed vectors with VectorStyle:

Set the style for multiple vector fields:

Use Arrowheads to specify an explicit style of the arrowheads:

Specify both arrow tail and head:

Graphics primitives without Arrowheads are scaled based on the VectorSizes:

Change the scaling using the VectorSizes option:

Applications  (3)

Hamiltonian vector field of :

Visualize the first horizontal and vertical Gaussian derivatives of an image:

Combine the vertical and horizontal Gaussian derivatives:

Characterize linear planar systems interactively:

Properties & Relations  (8)

Use VectorPlot to plot functions:

Use ListStreamPlot to plot data with streamlines instead of vectors:

Use ListVectorDensityPlot for plotting data with a density plot of the scalar field:

Use VectorDensityPlot to plot functions with a density plot of the scalar field:

Use ListLineIntegralConvolutionPlot to plot the line integral convolution of vector field data:

Use ListVectorPlot3D and ListStreamPlot3D to visualize 3D vector field data:

Plot vectors on surfaces with ListSliceVectorPlot3D:

Use GeoVectorPlot to plot vectors on a map:

Wolfram Research (2008), ListVectorPlot, Wolfram Language function, https://reference.wolfram.com/language/ref/ListVectorPlot.html (updated 2020).

Text

Wolfram Research (2008), ListVectorPlot, Wolfram Language function, https://reference.wolfram.com/language/ref/ListVectorPlot.html (updated 2020).

BibTeX

@misc{reference.wolfram_2021_listvectorplot, author="Wolfram Research", title="{ListVectorPlot}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/ListVectorPlot.html}", note=[Accessed: 21-October-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_listvectorplot, organization={Wolfram Research}, title={ListVectorPlot}, year={2020}, url={https://reference.wolfram.com/language/ref/ListVectorPlot.html}, note=[Accessed: 21-October-2021 ]}

CMS

Wolfram Language. 2008. "ListVectorPlot." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/ListVectorPlot.html.

APA

Wolfram Language. (2008). ListVectorPlot. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ListVectorPlot.html