StreamColorFunction

StreamColorFunction
is an option for StreamPlot and related functions that specifies a function to apply to determine colors along streamlines.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

Color streamlines according to the norm of the vector field:

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 »