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 > StreamColorFunction >
Mathematica > Visualization and Graphics > Function Visualization > Vector Visualization > StreamColorFunction >
Mathematica > Visualization and Graphics > Data Visualization > Function Visualization > Vector Visualization > StreamColorFunction >

StreamColorFunction

StreamColorFunction
is an option for StreamPlot and related functions that 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.
  • Combinations of directives can be specified using Directive.
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]=
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF