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]=
Introduced in 2008
(7.0)