This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.

# VectorColorFunction

 VectorColorFunctionis an option for VectorPlot and related functions which specifies a function to apply to determine colors of field vectors drawn.
• The setting for VectorColorFunction is applied to the coordinates associated with the center of each field vector to determine the color to use to render the field vector.
 VectorPlot,ListVectorPlot,StreamPlot,ListStreamPlot,LineIntegralConvolutionPlot,ListLineIntegralConvolutionPlot x,y,vx,vy,Norm[{vx, vy}] VectorDensityPlot,ListVectorDensityPlot,StreamDensityPlot,ListStreamDensityPlot x,y,vx,vy,s VectorPlot3D,ListVectorPlot3D x,y,z,vx,vy,vz,Norm[{vx, vy, vz}]
• With the usual default setting , the arguments supplied to func are scaled to lie in the range 0 to 1.
• With original unscaled values are used.
• The list of possible color function names is given by ColorData["Gradients"].
• Combinations of directives can be specified using Directive[g1, g2, ...].
Color the vectors according to their norm:
Use any color gradient from ColorData:
Color the vectors according to their norm:
 Out[1]=

Use any color gradient from ColorData:
 Out[1]=
New in 7