Mathematica > Visualization and Graphics > Data Visualization > Vector Visualization >
Mathematica > Visualization and Graphics > Function Visualization > Vector Visualization >

VectorPlot

VectorPlot[{vx, vy}, {x, xmin, xmax}, {y, ymin, ymax}]
generates a vector plot of the vector field {vx, vy} as a function of x and y.
VectorPlot[{{vx, vy}, {wx, wy}, ...}, {x, xmin, xmax}, {y, ymin, ymax}]
plots several vector fields.
  • VectorPlot by default shows vectors from the vector field at a regular grid of positions.
  • VectorPlot omits any vectors for which the vi etc. do not evaluate to real numbers.
  • VectorPlot has attribute HoldAll, and evaluates the vi, etc. only after assigning specific numerical values to x and y.
  • In some cases it may be more efficient to use Evaluate to evaluate the vi, etc. symbolically before specific numerical values are assigned to x and y.
AspectRatio1ratio of height to width
EvaluationMonitorNoneexpression to evaluate at every function evaluation
FrameTruewhether to draw a frame around the plot
FrameTicksAutomaticframe tick marks
MethodAutomaticmethods to use for the plot
PerformanceGoal$PerformanceGoalaspects of performance to try to optimize
PlotRange{Full,Full}range of x, y values to include
PlotRangePaddingAutomatichow much to pad the range of values
RegionFunctionTrue&determine what region to include
VectorColorFunctionNonehow to color vectors
VectorColorFunctionScalingTruewhether to scale the argument to VectorColorFunction
VectorPointsAutomaticthe number or placement of vectors to plot
VectorScaleAutomaticthe scale and size of vectors to plot
VectorStyleAutomatichow to draw vectors
WorkingPrecisionMachinePrecisionprecision to use in internal computations
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team