VectorStyle

VectorStyle

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 all close all

Basic Examples  (2)

Set the style for the displayed vectors:

In[1]:=
Click for copyable input
Out[1]=

Set the style for multiple vector fields:

In[1]:=
Click for copyable input
Out[1]=

Scope  (5)

Introduced in 2008
(7.0)
|
Updated in 2018
(11.3)