# ListStreamDensityPlot

ListStreamDensityPlot[varr]

generates a stream density plot from an array varr of vector and scalar field values {{vxij,vyij},rij}.

ListStreamDensityPlot[{{{x1,y1},{{vx1,vy1},r1}},}]

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

ListStreamDensityPlot[{data1,data2,}]

plots data for several vector and scalar fields.

# Details and Options

• ListStreamDensityPlot generates a stream plot of the vector field, superimposed on a background density plot of the scalar field.
• ListStreamDensityPlot plots streamlines defined by and where is an interpolated function of the vector data and is an initial stream point. The streamline is the curve passing through point , and whose tangents correspond to the vector field at each point.
• The streamlines are drawn over a density plot of the scalar field , whose default value is the magnitude of the vector field.
• The streamlines are colored by default according to the magnitude of the vector field and have an arrow in the direction of increasing value of .
• ListStreamDensityPlot interpolates the data into vector function and scalar function .
• For regular data, the vector field has value varri,j,1 and the scalar field has value varri,j,2 at .
• For irregular data, the vector field has value {vxi,vyi} and the scalar field has value riat .
• If no scalar field values are given, they are taken to be the norm of the vector field.
• ListStreamDensityPlot plots streamlines that show the local direction of the vector field at every point.
• ListStreamDensityPlot[varr] arranges successive rows of array up the page and successive columns across.
• ListStreamDensityPlot by default interpolates the data given and shows enough streamlines to achieve a roughly uniform density throughout the plot.
• ListStreamDensityPlot has the same options as Graphics, with the following additions and changes: [List of all options]
•  AspectRatio 1 ratio of height to width BoundaryStyle None how to draw RegionFunction boundaries BoxRatios Automatic effective 3D box ratios for simulated lighting ColorFunction Automatic how to color background densities ColorFunctionScaling True whether to scale arguments to ColorFunction DataRange Automatic the range of x and y values to assume for data EvaluationMonitor None expression to evaluate at every function evaluation Frame True whether to draw a frame around the plot FrameTicks Automatic frame tick marks LightingAngle None effective angle for simulated lighting MaxRecursion Automatic the maximum number of recursive subdivisions allowed for the scalar field Mesh None how many mesh lines to draw in the background MeshFunctions {#5&} how to determine the placement of mesh lines MeshShading None how to shade regions between mesh lines MeshStyle Automatic the style of mesh lines Method Automatic methods to use for the plot PerformanceGoal \$PerformanceGoal aspects of performance to try to optimize PlotLegends None legends to use for the plot PlotRange {Full,Full} range of x, y values to include PlotRangePadding Automatic how much to pad the range of values PlotTheme \$PlotTheme overall theme for the plot RegionFunction True& determine what region to include ScalingFunctions None how to scale individual coordinates StreamColorFunction Automatic how to color streamlines StreamColorFunctionScaling True whether to scale the argument to StreamColorFunction StreamMarkers Automatic shape to use for streams StreamPoints Automatic determine number, placement, and closeness of streamlines StreamScale Automatic determine sizes and segmenting of individual streamlines StreamStyle Automatic how to draw streamlines WorkingPrecision MachinePrecision precision to use in internal computations
• The arguments supplied to functions in MeshFunctions, RegionFunction, ColorFunction, and StreamColorFunction are x, y, vx, vy, r.
• The default setting MeshFunctions->{#5&} draws mesh lines for the scalar field r.
• Possible settings for ScalingFunctions are:
•  {sx,sy} scale x and y axes
• Common built-in scaling functions s include:
•  "Log" log scale with automatic tick labeling "Log10" base-10 log scale with powers of 10 for ticks "SignedLog" log-like scale that includes 0 and negative numbers "Reverse" reverse the coordinate direction "Infinite" infinite scale
• ## List of all options

•  AlignmentPoint Center the default point in the graphic to align with AspectRatio 1 ratio of height to width Axes False whether to draw axes AxesLabel None axes labels AxesOrigin Automatic where axes should cross AxesStyle {} style specifications for the axes Background None background color for the plot BaselinePosition Automatic how to align with a surrounding text baseline BaseStyle {} base style specifications for the graphic BoundaryStyle None how to draw RegionFunction boundaries BoxRatios Automatic effective 3D box ratios for simulated lighting ColorFunction Automatic how to color background densities ColorFunctionScaling True whether to scale arguments to ColorFunction ContentSelectable Automatic whether to allow contents to be selected CoordinatesToolOptions Automatic detailed behavior of the coordinates tool DataRange Automatic the range of x and y values to assume for data Epilog {} primitives rendered after the main plot EvaluationMonitor None expression to evaluate at every function evaluation FormatType TraditionalForm the default format type for text Frame True whether to draw a frame around the plot FrameLabel None frame labels FrameStyle {} style specifications for the frame FrameTicks Automatic frame tick marks FrameTicksStyle {} style specifications for frame ticks GridLines None grid lines to draw GridLinesStyle {} style specifications for grid lines ImageMargins 0. the margins to leave around the graphic ImagePadding All what extra padding to allow for labels etc. ImageSize Automatic the absolute size at which to render the graphic LabelStyle {} style specifications for labels LightingAngle None effective angle for simulated lighting MaxRecursion Automatic the maximum number of recursive subdivisions allowed for the scalar field Mesh None how many mesh lines to draw in the background MeshFunctions {#5&} how to determine the placement of mesh lines MeshShading None how to shade regions between mesh lines MeshStyle Automatic the style of mesh lines Method Automatic methods to use for the plot PerformanceGoal \$PerformanceGoal aspects of performance to try to optimize PlotLabel None an overall label for the plot PlotLegends None legends to use for the plot PlotRange {Full,Full} range of x, y values to include PlotRangeClipping False whether to clip at the plot range PlotRangePadding Automatic how much to pad the range of values PlotRegion Automatic the final display region to be filled PlotTheme \$PlotTheme overall theme for the plot PreserveImageOptions Automatic whether to preserve image options when displaying new versions of the same graphic Prolog {} primitives rendered before the main plot RegionFunction True& determine what region to include RotateLabel True whether to rotate y labels on the frame ScalingFunctions None how to scale individual coordinates StreamColorFunction Automatic how to color streamlines StreamColorFunctionScaling True whether to scale the argument to StreamColorFunction StreamMarkers Automatic shape to use for streams StreamPoints Automatic determine number, placement, and closeness of streamlines StreamScale Automatic determine sizes and segmenting of individual streamlines StreamStyle Automatic how to draw streamlines Ticks Automatic axes ticks TicksStyle {} style specifications for axes ticks WorkingPrecision MachinePrecision precision to use in internal computations

# Examples

open allclose all

## Basic Examples(2)

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

Plot the streamlines and background from data specifying coordinates and vectors:

## Scope(24)

### Sampling(11)

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

Plot streamlines for an irregular collection of vectors:

Use an explicit scalar field on a regular collection of vectors:

Use an explicit scalar field on an irregular collection of vectors:

Plot streamlines for two vector fields with the background based on the norm of the first:

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

Give a data range for the domain:

Use a different set of colors for the scalar field:

Specify different dashings and arrowheads by setting to StreamScale:

Plot the streamlines with arrows colored according to the magnitude of the field:

Apply a variety of streamline markers:

Use a theme with simpler ticks and brighter colors:

Use a named appearance to draw the streamlines:

Style the streamlines as well:

Style streamlines for multiple vector fields:

Specify mesh lines with different styles:

Specify global mesh line styles:

Shade mesh regions cyclically:

Apply a variety of styles to region boundaries:

Reverse the direction of the y axis:

## Options(80)

### Background(1)

Use colored backgrounds:

### ColorFunction(6)

Color the field magnitude using Hue:

Color using Hue based on :

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 to get unscaled values:

### ColorFunctionScaling(4)

By default, scaled values are used:

Use 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:

### 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:

### MaxRecursion(1)

Refine the plot where it changes quickly:

### 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:

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:

### PlotLegends(1)

Include a legend for the scalar field:

Place the legend below the plot:

### PlotRange(5)

The full plot range is used by default:

Specify an explicit limit for both and ranges:

Specify an explicit range:

Specify an explicit range:

Specify different and ranges:

### PlotTheme(1)

Plot a vector field using monochrome colors:

Use white streamlines instead of black:

### RegionBoundaryStyle(2)

Show the region being plotted:

Style the boundary:

### 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:

### ScalingFunctions(3)

By default, linear scales are used:

Use a log scale in the y direction:

Reverse the direction of the y direction:

### StreamColorFunction(5)

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 to get unscaled values:

### StreamColorFunctionScaling(4)

By default, scaled values are used:

Use 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 the 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 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(3)

Characterize linear planar systems interactively:

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:

Outline of the United States:

Wind velocity and pressure over the United States:

## Properties & Relations(12)

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

Use ListStreamPlot for plotting data without a density plot:

Use ListVectorPlot to plot vectors instead of streamlines:

Use ListVectorDensityPlot to plot with vectors instead of streamlines:

Use StreamPlot or VectorPlot for plotting functions without a density plot of the scalar field:

Use ListVectorDisplacementPlot to visualize the deformation of a region associated with a displacement vector field:

Use ListVectorDisplacementPlot3D to visualize the deformation of a 3D region associated with a displacement vector field:

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

Use ListSliceVectorPlot3D to visualize 3D vector field data along a surface:

ListStreamDensityPlot samples more points where it needs to:

Scalar fields can be plotted by themselves with ListDensityPlot:

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

Use GeoVectorPlot to plot vectors on a map:

Use GeoStreamPlot to plot streamlines instead of vectors:

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

#### Text

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

#### CMS

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

#### APA

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

#### BibTeX

@misc{reference.wolfram_2024_liststreamdensityplot, author="Wolfram Research", title="{ListStreamDensityPlot}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/ListStreamDensityPlot.html}", note=[Accessed: 07-August-2024 ]}

#### BibLaTeX

@online{reference.wolfram_2024_liststreamdensityplot, organization={Wolfram Research}, title={ListStreamDensityPlot}, year={2022}, url={https://reference.wolfram.com/language/ref/ListStreamDensityPlot.html}, note=[Accessed: 07-August-2024 ]}