This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

VectorColorFunction

VectorColorFunction
is 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.
  • 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:
In[1]:=
Click for copyable input
Out[1]=
 
Use any color gradient from ColorData:
In[1]:=
Click for copyable input
Out[1]=
New in 7