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)

Introduced in 2008
 (7.0)