StreamColorFunction

StreamColorFunction

is an option for StreamPlot and related functions that specifies a function to apply to determine colors along streamlines.

Details

Examples

open allclose all

Basic Examples  (3)

Color streamlines according to the norm of the vector field:

Use any color gradient from ColorData:

Color streamlines according to the norm of the vector field:

Scope  (6)

Define a one-dimensional color function:

Define a two-dimensional color function:

By default, the parameters are scaled to be between 0 and 1:

Use StreamColorFunctionScaling->False to use the unscaled values:

Combine the color function with other styles using StreamStyle:

Style streamlines in density stream plots:

Introduced in 2008
 (7.0)