WOLFRAM

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)Summary of the most common use cases

Use any color gradient from ColorData:

Out[1]=1

Scope  (2)Survey of the scope of standard use cases

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

Out[1]=1

Use the or position of the vector instead:

Out[2]=2

Use the horizontal or vertical component of the vector instead:

Out[3]=3

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

Out[1]=1

Use unscaled values with VectorColorFunctionScaling->False:

Out[2]=2

Applications  (2)Sample problems that can be solved with this function

Use VectorColorFunctionScaling and ColorFunctionScaling with contrasting colors:

Out[2]=2

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

Out[1]=1

Properties & Relations  (1)Properties of the function, and connections to other functions

Out[1]=1
Out[2]=2
Wolfram Research (2008), VectorColorFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/VectorColorFunction.html.
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.

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.

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

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

BibTeX

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

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

BibLaTeX

@online{reference.wolfram_2025_vectorcolorfunction, organization={Wolfram Research}, title={VectorColorFunction}, year={2008}, url={https://reference.wolfram.com/language/ref/VectorColorFunction.html}, note=[Accessed: 12-April-2025 ]}

@online{reference.wolfram_2025_vectorcolorfunction, organization={Wolfram Research}, title={VectorColorFunction}, year={2008}, url={https://reference.wolfram.com/language/ref/VectorColorFunction.html}, note=[Accessed: 12-April-2025 ]}