VectorScale

As of Version 12.1, VectorScale has been superseded by the options VectorScaling, VectorAspectRatio and VectorSizes.

VectorScale

is an option to VectorPlot, ListVectorPlot, and related functions that determines the length and arrowhead size of field vectors that are drawn.

Details

  • The following settings can be given for VectorScale:
  • Automaticautomatic setting based on the location of field vectors
    Large,Medium, Small, Tinyscale field vectors to be large, medium, etc.
    {unitlen,aratio,sfun}use explicit specification of field vector scale
  • With the explicit specification 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:
  • sunit scale to use, given as a fraction of the diagonal of the overall bounding box
    Large,Medium,Small,Tinysymbolic unit lengths
  • The following settings can be used for aratio:
  • rabsolute aspect ratio relative to unitlen
    Scaled[r]relative aspect ratio for each vector box
    Automaticcorrespond to Scaled[1] in 2D and Scaled[0.6] in 3D
  • The following settings can be used for sfun:
  • Noneall vector boxes are unitlen wide
    funca function of x, y, vx, vy, Norm[{vx,vy}]
    Automaticuse Norm[{vx,vy}]
  • When using an explicit sfun, positive values are automatically scaled to lie between 0 and 1. For other values, the vector is not drawn.

Examples

open allclose all

Basic Examples  (3)

Use symbolic names to control the size of vectors:

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

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

Scope  (2)

Specify an absolute size for the arrowheads:

Specify arrowhead size relative to the length of the arrow:

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

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

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

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

Text

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

BibTeX

@misc{reference.wolfram_2021_vectorscale, author="Wolfram Research", title="{VectorScale}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/VectorScale.html}", note=[Accessed: 25-September-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_vectorscale, organization={Wolfram Research}, title={VectorScale}, year={2008}, url={https://reference.wolfram.com/language/ref/VectorScale.html}, note=[Accessed: 25-September-2021 ]}

CMS

Wolfram Language. 2008. "VectorScale." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/VectorScale.html.

APA

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