({{, (RefLink[VectorScale, paclet:ref/VectorScale]) 
is an option to (RefLink[VectorPlot, paclet:ref/VectorPlot]), (RefLink[ListVectorPlot, paclet:ref/ListVectorPlot]), and related functions that determines the length and arrowhead size of field vectors that are drawn. }})

OpenersNotesSection(Spacer1)Details

The following settings can be given for (RefLink[VectorScale, paclet:ref/VectorScale]):

With the explicit specification (RefLink[VectorScale, paclet:ref/VectorScale])->{unitlen,aratio,sfun} each field vector is constrained to fit in a vector box oriented in the direction of the field, centered at the location of the vector.

The unitlen is given as a fraction of the diagonal of the overall bounding box and is used as a local scale for vector boxes, aratio is the aspect ratio for vector boxes, sfun is a scaling function that determines the width of vector boxes.

The following settings can be used for unitlen:

The following settings can be used for aratio:

The following settings can be used for sfun:

When using an explicit sfun, positive values are automatically scaled to lie between 0 and 1. For other values, the vector is not drawn.

OpenersPrimaryExamplesSection(Spacer1)Examples  (6)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Use symbolic names to control the size of vectors:

Table[VectorPlot[{Sin[x],Cos[y]},{x,-Pi,Pi},{y,-Pi,Pi},VectorScale->s],{s,{Medium,Large}}]

Specify the relative size of vectors as a fraction of the diagonal of the plot range:

Table[VectorPlot[{Sin[x],Cos[y]},{x,-Pi,Pi},{y,-Pi,Pi},VectorPoints->10,VectorScale->s],{s,{0.05,0.1}}]

With the vector scaling function set to (RefLink[None, paclet:ref/None]), all vectors have the same size:

Table[VectorPlot[{Sin[x],Cos[y]},{x,-Pi,Pi},{y,-Pi,Pi},VectorScale->{Automatic,Automatic,f}],{f,{None,Automatic}}]

OpenersExampleSection1(Spacer1)Scope  (3)

Specify an absolute size for the arrowheads:

VectorPlot[{Sin[x],Cos[y]},{x,-Pi,Pi},{y,-Pi,Pi},VectorScale->{Large,1}]

Specify arrowhead size relative to the length of the arrow:

VectorPlot[{Sin[x],Cos[y]},{x,-Pi,Pi},{y,-Pi,Pi},VectorScale->{Large,Scaled[1]}]

Scale the vector length by the absolute value of the x coordinate:

VectorPlot[{Sin[x],Cos[y]},{x,-Pi,Pi},{y,-Pi,Pi},VectorScale->{Large,Automatic,#1&}]

By default, the vector length is scaled by the norm of the vector field:

Table[VectorPlot[{Sin[x],Cos[y]},{x,-Pi,Pi},{y,-Pi,Pi},VectorScale->{Large, Automatic, len}],{len,{Automatic,#5&}}]

Scale the vector length by the x component of the vector field:

VectorPlot[{1/(x^2+y^2),1/(x^2+y^2)},{x,-3,3},{y,-3,3},VectorScale->{Automatic,Automatic,#}]& /@ {None,Function[If[#5>1,None,#5]]}

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[VectorPoints, paclet:ref/VectorPoints])  ▪  (RefLink[VectorStyle, paclet:ref/VectorStyle])  ▪  (RefLink[StreamScale, paclet:ref/StreamScale])  ▪  (RefLink[VectorPlot, paclet:ref/VectorPlot])  ▪  (RefLink[ListVectorPlot, paclet:ref/ListVectorPlot])  ▪  (RefLink[VectorDensityPlot, paclet:ref/VectorDensityPlot])  ▪  (RefLink[VectorPlot3D, paclet:ref/VectorPlot3D])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Vector Visualization, paclet:guide/VectorVisualization])}})}})