Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Visualization and Graphics > Data Visualization > Vector Visualization >
Mathematica > Visualization and Graphics > Function Visualization > Vector Visualization >

StreamColorFunction

StreamColorFunction
is an option for StreamPlot and related functions which specifies a function to apply to determine colors along streamlines.
  • The setting for StreamColorFunction is applied at each point along each streamline to determine the color to use to render the streamline.
  • The list of possible color function names is given by ColorData["Gradients"].
  • Combinations of directives can be specified using Directive[g1, g2, ...].
Color streamlines according to the norm of the vector field:
Use any color gradient from ColorData:
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]=
Define a one-dimensional color function:
Use predefined color gradients from ColorData:
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team