VectorColorFunction

VectorColorFunction

is an option for VectorPlot and related functions that specifies a function to apply to determine colors of field vectors drawn.

Details

Examples

open allclose all

Basic Examples  (1)

Use any color gradient from ColorData:

Scope  (2)

Vector color functions use the norms of the vectors by default:

Use the or position of the vector instead:

Use the horizontal or vertical component of the vector instead:

By default, the vector color function uses values scaled to be between 0 and 1:

Use unscaled values with VectorColorFunctionScaling->False:

Applications  (2)

Use VectorColorFunctionScaling and ColorFunctionScaling with contrasting colors:

Color the vectors according to the logarithm of the vector magnitude:

Properties & Relations  (1)

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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