ListStreamPlot

ListStreamPlot[array]

generates a stream plot from an array of vector field values.

ListStreamPlot[{{{x1,y1},{vx1,vy1}},}]

generates a stream plot from vector field values {vxi,vyi} given at specified points {xi,yi}.

ListStreamPlot[{data1,data2,}]

plots data for several vector fields.

Details and Options

Examples

open allclose all

Basic Examples  (2)

Plot streamlines computed from the interpolation of a specified set of vectors:

Plot the streamlines from data specifying coordinates and vectors:

Scope  (21)

Sampling  (9)

Plot streamlines for a regular collection of vectors, and give a data range for the domain:

Plot streamlines for an irregular collection of vectors:

Plot streamlines for several vector fields:

Plot a vector field with streamlines placed with specified densities:

Plot the streamlines that go through a set of seed points:

Use both automatic and explicit seeding with styles for explicitly seeded streamlines:

Plot streamlines over a specified region:

Use a specific number of mesh lines:

Specify specific mesh lines:

Presentation  (12)

Specify different dashings and arrowheads by settings to StreamScale:

Streamlines with arrows are colored by default according to the magnitude of the field:

Use a constant color for the streamlines:

Style streamlines for multiple vector fields:

Use a named appearance to draw the streamlines:

Style the streamlines as well:

Plot vectors and streamlines together:

Specify mesh lines with different styles:

Specify global mesh line styles:

Shade mesh regions cyclically:

Apply a variety of styles to region boundaries:

Use a theme with simple ticks and grid lines:

Use a theme with detailed ticks and fine stream style:

Options  (79)

AspectRatio  (2)

By default, the aspect ratio is 1:

Set the aspect ratio:

Background  (1)

Use colored backgrounds:

DataRange  (1)

By default, the data range is taken to be the index range of the data array:

Specify the data range for the domain:

EvaluationMonitor  (1)

Count the number of times the vector field function is evaluated:

FrameLabel  (1)

Label the frame:

Mesh  (5)

By default, no mesh lines are displayed:

Show the final sampling mesh:

Use a specific number of mesh lines:

Specify mesh lines:

Use different styles for different mesh lines:

MeshFunctions  (3)

By default, mesh lines correspond to the magnitude of the field:

Use the value as the mesh function:

Use mesh lines corresponding to fixed distances from the origin:

MeshShading  (3)

Use None to remove regions:

Styles are used cyclically:

Use indexed colors from ColorData cyclically:

MeshStyle  (1)

Apply a variety of styles to the mesh lines:

PerformanceGoal  (2)

Generate a higher-quality plot:

Emphasize performance, possibly at the cost of quality:

PlotRange  (7)

The full plot range is used by default:

Specify an explicit limit for both and ranges:

Specify an explicit range:

Specify an explicit minimum range:

Specify an explicit range:

Specify an explicit maximum range:

Specify different and ranges:

PlotLegends  (5)

Use legends for multiple datasets:

Use SwatchLegend to add an overall legend label:

Legends automatically pick up styles and shapes:

Use a legend for the color function:

Use Placed to put legends above the plot:

PlotTheme  (1)

Use a theme with high-contrast colors and simple ticks:

Change the stream style:

RegionBoundaryStyle  (3)

The plotted region is highlighted by default:

Style the region boundary:

Omit the region boundary:

RegionFillingStyle  (3)

The plotted region is highlighted by default:

Style the region interior:

Omit the region interior:

RegionFunction  (3)

Plot vectors only over certain quadrants:

Plot vectors only over regions where the field magnitude is above a given threshold:

Use any logical combination of conditions:

StreamColorFunction  (5)

By default, color streamlines according to the norm of the vector field:

Use any named color gradient from ColorData:

Use ColorData for predefined color gradients:

Specify a color function that blends two colors by the coordinate:

Use StreamColorFunctionScaling->False to get unscaled values:

StreamColorFunctionScaling  (4)

By default, scaled values are used:

Use StreamColorFunctionScaling->False to get unscaled values:

Use unscaled coordinates in the direction and scaled coordinates in the direction:

Explicitly specify the scaling for each color function argument:

StreamMarkers  (8)

Streamlines are drawn as arrows by default:

Use a named appearance to draw the streamlines:

Use different markers for different vector fields:

Use named styles:

Named arrow styles:

Named dot styles:

Named pointer styles:

Named dart styles:

StreamPoints  (6)

Specify a maximum number of streamlines:

Use symbolic names to specify the number of streamlines:

Use both automatic and explicit seeding with styles for explicitly seeded streamlines:

Specify the minimum distance between streamlines:

Specify the minimum distance between streamlines at the start and end of a streamline:

Control the maximum length that each streamline can have:

StreamScale  (9)

Create full streamlines without segmentation:

Use curves for streamlines:

Use symbolic names to control the lengths of streamlines:

Specify segment lengths:

Specify an explicit dashing pattern for streamlines:

Specify number of points rendered on each streamline segment:

Specify absolute aspect ratios relative to the longest line segment:

Specify relative aspect ratios relative to each line segment:

Scale the length of the arrows by the coordinate:

StreamStyle  (5)

StreamColorFunction has precedence over colors specified in StreamStyle:

Set StreamColorFunctionNone to specify colors with StreamStyle:

Apply a variety of styles to the streamlines:

Specify a custom arrowhead:

Set the style for multiple vector fields:

Applications  (6)

Global attractor of damped conservative system:

Visualize the first horizontal and vertical Gaussian derivatives of an image:

Combine the vertical and horizontal Gaussian derivatives:

Compute wind velocity from given coordinates:

Filter unavailable data:

Representation of Australia:

Wind velocity over Australia:

Organize several datasets into a tabbed view:

Explore various streamline styles and scales with several examples:

Generate icons to graphically represent field choices:

Click on the field icons to switch field plots:

Consider the heat equation on the unit square with on the left edge, (insulated) on the top and bottom edges, and for and for on the right edge.

Use finite differences to discretize the equation and the boundary conditions:

Solve the equations and compute the temperature gradients:

Plot the approximate temperatures with ListContourPlot and the heat flux with ListStreamPlot:

Properties & Relations  (8)

Use StreamPlot for plotting functions:

Use ListVectorPlot for plotting data without a density plot of the scalar field:

Use ListStreamDensityPlot for plotting data with a density plot of the scalar field:

Use StreamDensityPlot to plot functions with a density plot of the scalar field:

Use VectorPlot to plot functions with vectors instead of streamlines:

Use ListLineIntegralConvolutionPlot to plot the line integral convolution of vector field data:

Use ListVectorPlot3D and ListStreamPlot3D to visualize 3D vector field data:

Use GeoStreamPlot to plot streams on a map:

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

Text

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

BibTeX

@misc{reference.wolfram_2021_liststreamplot, author="Wolfram Research", title="{ListStreamPlot}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/ListStreamPlot.html}", note=[Accessed: 04-August-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_liststreamplot, organization={Wolfram Research}, title={ListStreamPlot}, year={2020}, url={https://reference.wolfram.com/language/ref/ListStreamPlot.html}, note=[Accessed: 04-August-2021 ]}

CMS

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

APA

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