is an option for graphics functions which specifies whether arguments supplied to a vector color function should be scaled to lie between 0 and 1.
VectorColorFunctionScaling
is an option for graphics functions which specifies whether arguments supplied to a vector color function should be scaled to lie between 0 and 1.
Details
- The usual default setting is VectorColorFunctionScaling->True.
- With VectorColorFunctionScaling->False original unscaled values are fed to the vector color function.
- VectorColorFunctionScaling->{s1,s2,…} takes si to specify whether to scale argument i of the vector color function.
- Scaling is done so as to make the minimum and maximum values of all variables lie between 0 and 1.
Examples
Basic Examples (4)
By default, scaled values are used to color the vectors:
VectorPlot[{x + y, -x + y}, {x, -3, 3}, {y, -3, 3}, VectorColorFunction -> Hue]Show arrows colored according to the logarithm of the vector field magnitude:
VectorPlot[{-1 - x ^ 2 + y, 1 + x - y ^ 2}, {x, -3, 3}, {y, -3, 3}, VectorColorFunction -> Function[Hue[Log[#5] / 3]], VectorColorFunctionScaling -> False]Highlight vectors whose magnitude is above a threshold:
VectorPlot[{x + y, -x + y}, {x, -3, 3}, {y, -3, 3}, VectorColorFunction -> (If[#5 > 5, Red, GrayLevel[1 - #5 / 5]]&), VectorColorFunctionScaling -> False]Scale only the vertical component of the vector field when computing the color:
VectorPlot[{x + y, -x + y}, {x, -2, 2}, {y, -2, 2}, VectorColorFunction -> (ColorData["Rainbow"][#1#4]&), VectorColorFunctionScaling -> {False, False, False, True, False}]Tech Notes
History
Text
Wolfram Research (2008), VectorColorFunctionScaling, Wolfram Language function, https://reference.wolfram.com/language/ref/VectorColorFunctionScaling.html.
CMS
Wolfram Language. 2008. "VectorColorFunctionScaling." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/VectorColorFunctionScaling.html.
APA
Wolfram Language. (2008). VectorColorFunctionScaling. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VectorColorFunctionScaling.html
BibTeX
@misc{reference.wolfram_2026_vectorcolorfunctionscaling, author="Wolfram Research", title="{VectorColorFunctionScaling}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/VectorColorFunctionScaling.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_vectorcolorfunctionscaling, organization={Wolfram Research}, title={VectorColorFunctionScaling}, year={2008}, url={https://reference.wolfram.com/language/ref/VectorColorFunctionScaling.html}, note=[Accessed: 13-June-2026]}