VectorColorFunction

VectorColorFunction
is an option for VectorPlot and related functions which specifies a function to apply to determine colors of field vectors drawn.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

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
New to Mathematica? Find your learning path »
Have a question? Ask support »