WOLFRAM

VectorPlot3D[{vx,vy,vz},{x,xmin,xmax},{y,ymin,ymax},{z,zmin,zmax}]

generates a 3D vector plot of the vector field {vx,vy,vz} as a function of x, y, and z.

VectorPlot3D[{field1,field2,},{x,xmin,xmax},{y,ymin,ymax},{z,zmin,zmax}]

plots several vector fields.

VectorPlot3D[,{x,y,z}reg]

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

Details and Options

Examples

open allclose all

Basic Examples  (4)Summary of the most common use cases

Plot a vector field:

Out[3]=3

Include a legend for the vector magnitudes:

Out[1]=1

Use tube segments as markers to represent the vectors:

Out[1]=1

Plot a vector field inside the unit ball:

Out[1]=1

Scope  (14)Survey of the scope of standard use cases

Sampling  (5)

Use Evaluate to evaluate the vector field symbolically before numeric assignment:

Out[1]=1

Plot vectors over specified regions:

Out[1]=1

Plot a vector field with vectors placed with specified densities:

Out[1]=1

Plot a field with arrows placed at random locations:

Out[2]=2

Plot multiple vector fields with different colors for each field:

Out[1]=1

Presentation  (9)

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

Out[1]=1

Use a single color for the arrows:

Out[1]=1

Plot with 3D arrows:

Out[1]=1

Color and scale the vectors based on the norm of the field:

Out[2]=2

Plot a vector field with arrows of specified size:

Out[1]=1

Vary the arrow length and arrowhead size:

Out[1]=1

Include a legend:

Out[2]=2

Use a highly stylized theme:

Out[1]=1

Use a log scale for the x axis:

Out[1]=1

Reverse the y scale so it increases toward the bottom:

Out[2]=2

Options  (65)Common values & functionality for each option

BoxRatios  (2)

By default, BoxRatios is set to Automatic:

Out[1]=1

Make the height appear twice the width and length:

Out[1]=1

EvaluationMonitor  (2)

Show where the function is sampled:

Out[1]=1

Count how many times the vector field function is evaluated:

Out[1]=1

PerformanceGoal  (2)

Generate a higher-quality plot:

Out[1]=1

Emphasize performance, possibly at the cost of quality:

Out[1]=1

PlotLegends  (5)

No legends are included by default:

Out[1]=1

Add a legend that indicates vector norms:

Out[1]=1

Include a legend for two fields:

Out[1]=1

Include the vector fields in the legend:

Out[1]=1

Control the placement of the legend:

Out[1]=1

PlotRange  (9)

The full plot range is used by default:

Out[1]=1

Use all points to compute the range:

Out[1]=1

Specify an explicit limit for , , and ranges:

Out[1]=1

Specify an explicit range:

Out[1]=1

Specify an explicit minimum range:

Out[1]=1

Specify an explicit range:

Out[1]=1

Specify an explicit maximum range:

Out[1]=1

Specify an explicit range:

Out[1]=1

Specify different , , and ranges:

Out[1]=1

PlotRangePadding  (8)

Padding is computed automatically by default:

Out[1]=1

Specify no padding for all , , and ranges:

Out[1]=1

Specify an explicit padding for all , , and ranges:

Out[1]=1

Add 10% padding to all , , and ranges:

Out[1]=1

Specify padding for and ranges:

Out[1]=1

Specify different padding for , , and ranges:

Out[1]=1

Specify padding for the range:

Out[1]=1

Use different padding forms for each dimension:

Out[1]=1

PlotTheme  (2)

Use a theme with dense vector points and legends:

Out[1]=1

Reduce the number of vector points:

Out[1]=1

RegionBoundaryStyle  (5)

Show the region defined by a region function:

Out[1]=1

Use None to not show the boundary:

Out[1]=1

Specify a style for the boundary:

Out[1]=1

The boundaries of full rectangular regions are not shown:

Out[1]=1

Specify a style for full rectangular regions:

Out[1]=1

RegionFunction  (3)

Plot vectors only over certain quadrants:

Out[1]=1

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

Out[1]=1

Use any logical combination of conditions:

Out[1]=1

ScalingFunctions  (1)

Use a log scale for the x axis:

Out[4]=4

Reverse the y scale so it increases toward the bottom:

Out[1]=1

VectorAspectRatio  (2)

The default aspect ratio for a vector marker is 1/4:

Out[1]=1

Increase the relative width of a vector marker:

Out[1]=1

VectorColorFunction  (4)

Color the vectors according to their norm:

Out[1]=1

Use any named color gradient from ColorData:

Out[1]=1

Color the vectors according to their value:

Out[1]=1

Use VectorColorFunctionScaling->False to get unscaled values:

Out[1]=1

VectorColorFunctionScaling  (4)

By default, scaled values are used:

Out[1]=1

Use VectorColorFunctionScaling->False to get unscaled values:

Out[1]=1

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

Out[1]=1

Explicitly specify the scaling for each color function argument:

Out[1]=1

VectorMarkers  (3)

By default, 3D arrows are used:

Out[1]=1

Use other named markers:

Out[1]=1

Use Placed to control the arrow placement relative to the vector points:

Out[2]=2

VectorPoints  (7)

Use automatically determined vector points:

Out[1]=1

Use symbolic names to specify the set of field vectors:

Out[1]=1

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

Out[1]=1

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

Out[1]=1

Specify a list of points for showing field vectors:

Out[1]=1

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

Out[1]=1

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

Out[2]=2

Start the vectors at the points:

Out[3]=3

VectorRange  (4)

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

Out[2]=2

Specify the range of vector norms:

Out[1]=1

Suppress the clipped vectors:

Out[1]=1

Show all the vectors:

Out[1]=1

VectorStyle  (2)

VectorColorFunction takes precedence over colors in VectorStyle:

Out[1]=1

Use VectorColorFunctionNone to specify colors with VectorStyle:

Out[1]=1

Applications  (1)Sample problems that can be solved with this function

An electrostatic potential built from a collection of point charges at positions :

An electric field between two charges and :

The electrostatic potential between two charges and :

Out[4]=4

The electric field between two charges and :

Out[5]=5

Combine both visualizations:

Out[6]=6

Properties & Relations  (14)Properties of the function, and connections to other functions

Use ListVectorPlot3D to visualize data:

Out[2]=2

Plot vectors along surfaces with SliceVectorPlot3D:

Out[1]=1

Plot data vectors on surfaces with ListSliceVectorPlot3D:

Out[2]=2

Use StreamPlot3D to plot streamlines for a 3D vector field:

Out[1]=1

Use ListStreamPlot3D to plot with data:

Out[3]=3

Use VectorDisplacementPlot to visualize the effect of a displacement vector field on a specified region:

Out[1]=1

Use ListVectorDisplacementPlot to visualize the effect of displacement field data on a region:

Out[2]=2

Use VectorDisplacementPlot3D to visualize the effect of a displacement vector field on a specified 3D region:

Out[1]=1

Use ListVectorDisplacementPlot3D to visualize the effect of 3D displacement vector field data on a specified region:

Out[2]=2

Use VectorPlot for plotting 2D vectors:

Out[1]=1

Use ListVectorPlot to plot with data:

Out[3]=3

Use StreamPlot to plot with streamlines instead of vectors:

Out[1]=1
Out[3]=3

Use VectorDensityPlot to add a density plot of the scalar field:

Out[1]=1

Use StreamDensityPlot to plot streamlines instead of vectors:

Out[2]=2

Use ListVectorDensityPlot or ListStreamDensityPlot for plotting data:

Out[4]=4

Use LineIntegralConvolutionPlot to plot the line integral convolution of a vector field:

Out[1]=1

Plot a complex function as a vector field:

Out[1]=1

Plot streams instead of vectors with ComplexStreamPlot:

Out[2]=2

Use GeoVectorPlot to generate a vector plot over the Earth:

Out[3]=3

Use GeoStreamPlot to use streams instead of vectors:

Out[4]=4
Wolfram Research (2008), VectorPlot3D, Wolfram Language function, https://reference.wolfram.com/language/ref/VectorPlot3D.html (updated 2022).
Wolfram Research (2008), VectorPlot3D, Wolfram Language function, https://reference.wolfram.com/language/ref/VectorPlot3D.html (updated 2022).

Text

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

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

CMS

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

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

APA

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

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

BibTeX

@misc{reference.wolfram_2025_vectorplot3d, author="Wolfram Research", title="{VectorPlot3D}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/VectorPlot3D.html}", note=[Accessed: 26-April-2025 ]}

@misc{reference.wolfram_2025_vectorplot3d, author="Wolfram Research", title="{VectorPlot3D}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/VectorPlot3D.html}", note=[Accessed: 26-April-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_vectorplot3d, organization={Wolfram Research}, title={VectorPlot3D}, year={2022}, url={https://reference.wolfram.com/language/ref/VectorPlot3D.html}, note=[Accessed: 26-April-2025 ]}

@online{reference.wolfram_2025_vectorplot3d, organization={Wolfram Research}, title={VectorPlot3D}, year={2022}, url={https://reference.wolfram.com/language/ref/VectorPlot3D.html}, note=[Accessed: 26-April-2025 ]}