StreamScale

StreamScale

is an option to StreamPlot, ListStreamPlot, and related functions that determines the length and arrowhead size of streamlines that are drawn.

Details

  • StreamPlot and related functions effectively find streamlines by following the flow of the vector field. StreamScale determines how the streamlines found should be segmented for display.
  • Each streamline segment is rendered as an Arrow, with its own arrowhead.
  • The following settings can be given for StreamScale:
  • Automaticautomatically determine streamline scale
    Nonedraw no arrows for streamlines
    Fulluse full streamlines without segmentation
    {seg,npts,aratio,sfun}use explicit specification of streamline scaling
  • The setting StreamScale->{seg,npts,aratio,sfun} allows explicit specification of how streamlines should be broken into segments, and how each segment should be scaled.
  • The parameter seg is analogous to a Dashing specification for segments of a streamline. The following forms can be used:
  • sequivalent to {s,s/15}
    {s1,s2,}successive line segments of length s1, s2, , with every other segment rendered and repeated cyclically
    Large,Medium,Small,Tinyuse large, medium, etc. segment lengths
  • The following settings can be used for npts to control the number of points rendered on each streamline segment:
  • 2use two points, giving a straight streamline segment
    nuse up to n points for each streamline segment
    Alluse all computed points for each streamline segment
    Automaticuse an automatic method based on curve simplification
  • Every streamline segment effectively lies in a curved strip, with the arrowhead for the segment spanning one end of the strip.
  • The following settings can be used for aratio to control the aspect ratio of the streamline strip:
  • rabsolute aspect ratio relative to the longest line segment
    Scaled[r]relative aspect ratio relative to each line segment
    Automaticautomatic method based on the number points
  • After the length of segments is determined by seg, they can be rescaled by applying the function sfun. The following settings can be used:
  • Nonedo no rescaling
    funca function of x, y, vx, vy, Norm[{vx,vy}]
    Automaticautomatically determine rescaling

Examples

open allclose all

Basic Examples  (3)

Specify the length of streamline segments to use:

Specify the number of points used per segment:

Specify the size of the arrows used:

Scope  (3)

Use curves for the streamlines:

Use a single segment for each streamline:

Use larger arrowheads:

When the number of points per segment is set to 2, scaled arrows are used:

Scale the length of the arrows by the coordinate:

Properties & Relations  (1)

Show all line strips:

Neat Examples  (1)

Magnetic dipole field:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_streamscale, organization={Wolfram Research}, title={StreamScale}, year={2008}, url={https://reference.wolfram.com/language/ref/StreamScale.html}, note=[Accessed: 03-December-2024 ]}