is an option for graphics functions that specifies whether arguments supplied to a stream color function should be scaled to lie between 0 and 1.
StreamColorFunctionScaling
is an option for graphics functions that specifies whether arguments supplied to a stream color function should be scaled to lie between 0 and 1.
Details
- The usual default setting is StreamColorFunctionScaling->True.
- With StreamColorFunctionScaling->False original unscaled values are fed to the stream color function.
- StreamColorFunctionScaling->{s1,s2,…} takes si to specify whether to scale argument i of the stream color function.
- Scaling is done so as to make the minimum and maximum values of all variables lie between 0 and 1.
Examples
open all close allBasic Examples (1)
By default, scaled values are used to color the streamlines:
StreamPlot[{x - y, x + y}, {x, -1, 1}, {y, -1, 1}, StreamColorFunction -> "Rainbow"]Use StreamColorFunctionScaling->False to use unscaled values:
StreamPlot[{x - y, x + y}, {x, -1, 1}, {y, -1, 1}, StreamColorFunction -> "Rainbow", StreamColorFunctionScaling -> False]Scope (2)
Only scale the last value in the color function:
StreamPlot[{x - y, x + y}, {x, -2, 2}, {y, -2, 2}, StreamColorFunction -> (Opacity[1 - #5, ColorData["Rainbow"][Norm[{#1, #2}]]]&), StreamColorFunctionScaling -> {False, False, False, False, True}]Plot the streamlines with arrows colored according to the logarithm of the field magnitude:
StreamPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, StreamColorFunction -> Function[Hue[Log[#5] / 3]], StreamColorFunctionScaling -> False]Tech Notes
History
Text
Wolfram Research (2008), StreamColorFunctionScaling, Wolfram Language function, https://reference.wolfram.com/language/ref/StreamColorFunctionScaling.html.
CMS
Wolfram Language. 2008. "StreamColorFunctionScaling." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/StreamColorFunctionScaling.html.
APA
Wolfram Language. (2008). StreamColorFunctionScaling. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/StreamColorFunctionScaling.html
BibTeX
@misc{reference.wolfram_2026_streamcolorfunctionscaling, author="Wolfram Research", title="{StreamColorFunctionScaling}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/StreamColorFunctionScaling.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_streamcolorfunctionscaling, organization={Wolfram Research}, title={StreamColorFunctionScaling}, year={2008}, url={https://reference.wolfram.com/language/ref/StreamColorFunctionScaling.html}, note=[Accessed: 12-June-2026]}