StreamStyle

StreamStyle

is an option to StreamPlot, StreamDensityPlot, and related functions that determines the style to use for drawing streamlines.

Details

  • The setting for StreamStyle can include any color, thickness, dashing, arrowhead or other graphics directive.
  • StreamStyle->g specifies that a graphics directive g should be used to draw vectors in a plot.
  • StreamStyle->{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 StreamColorFunction, it is used in preference to the setting for StreamStyle.

Examples

open allclose all

Basic Examples  (3)

Set the streamline style:

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

Set the style for streamlines overlaid on a background based on field magnitude:

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

Set the style for multiple vector fields:

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

Scope  (3)

See Also

StreamColorFunction  StreamMarkers  StreamScale  StreamPoints  VectorStyle  StreamPlot  StreamDensityPlot

Introduced in 2008
(7.0)