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)

By default, streamlines are colored 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:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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