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  (4)

Set the streamline style:

StreamColorFunction has precedence over StreamStyle in the specification of stream colors:

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

Set the style for multiple vector fields:

Scope  (3)

Combine stream styles with stream markers:

Control the size of the arrowheads:

Use an arbitrary graphic as the arrowheads for vectors:

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

Text

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2024_streamstyle, author="Wolfram Research", title="{StreamStyle}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/StreamStyle.html}", note=[Accessed: 08-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_streamstyle, organization={Wolfram Research}, title={StreamStyle}, year={2008}, url={https://reference.wolfram.com/language/ref/StreamStyle.html}, note=[Accessed: 08-November-2024 ]}