WOLFRAM

is an option to VectorPlot, ListVectorPlot, and related functions that determines the style to use for drawing field vectors.

Details

  • The setting for VectorStyle can include any color, thickness, dashing, arrowhead, or other graphics directive.
  • VectorStyle->g specifies that a graphics directive g should be used to draw vectors in a plot.
  • VectorStyle->{g1,g2,} specifies that successive directives gi should be used cyclically for successive vector fields.
  • The directives that can be given include:
  • Arrowheads[spec]arrowheads
    Dashing[{w1,}]dashing specification
    Directive[g1,g2,]composite graphics directive
    Glow[c]glow color
    GrayLevel[i]intensity
    Hue[h]hue
    Opacity[a]opacity
    Red, Blue, etc.named colors
    RGBColor[r,g,b]RGB color
    Specularity[s]surface specularity
    Opacity[a]opacity
    Thickness[w]line thickness
  • If an explicit setting is given for VectorColorFunction, it is used in preference to the setting for VectorStyle.

Examples

open allclose all

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

Vector fields are colored to indicate magnitude:

Out[1]=1

Modify the style of the vectors:

Out[1]=1

Set VectorColorFunctionNone to modify the color of the vectors:

Out[1]=1

Set the style for multiple vector fields:

Out[1]=1

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

Combine vector styles with vector markers:

Out[1]=1

Control the size of the arrowheads:

Out[1]=1

Use an arbitrary graphic as the arrowheads for vectors:

Out[1]=1

Plot a vector field using 3D arrows:

Out[1]=1

Use Graphics3D as a style for the 3D arrows:

Out[2]=2

Use Arrowheads to specify the style of the arrowheads:

Out[1]=1

Change the scaling using the VectorScaling option:

Out[2]=2
Wolfram Research (2008), VectorStyle, Wolfram Language function, https://reference.wolfram.com/language/ref/VectorStyle.html (updated 2018).
Wolfram Research (2008), VectorStyle, Wolfram Language function, https://reference.wolfram.com/language/ref/VectorStyle.html (updated 2018).

Text

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

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

CMS

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

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

APA

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

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

BibTeX

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

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

BibLaTeX

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

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