Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >

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.
  • Combinations of directives can be specified using Directive.
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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF