|
SOLUTIONS
|
Mathematica
>
Visualization and Graphics
>
Data Visualization
>
Vector Visualization
>
StreamColorFunction
BUILT-IN MATHEMATICA SYMBOL
StreamColorFunction
StreamColorFunction
is an option for StreamPlot and related functions that specifies a function to apply to determine colors along streamlines.
DetailsDetails
- The setting for StreamColorFunction is applied at each point along each streamline to determine the color to use to render the streamline.
- With the setting StreamColorFunction->func, the arguments supplied to func are as follows:
-
VectorPlot,ListVectorPlot, StreamPlot,ListStreamPlot, LineIntegralConvolutionPlot, ListLineIntegralConvolutionPlot x,y,
,
,Norm[{vx, vy}]VectorDensityPlot, ListVectorDensityPlot,StreamDensityPlot, ListStreamDensityPlot x,y,
,
,sVectorPlot3D,ListVectorPlot3D x,y,z,
,
,
,Norm[{vx, vy, vz}] - With the usual default setting StreamColorFunctionScaling->True, the arguments supplied to func are scaled to lie in the range 0 to 1.
- With StreamColorFunctionScaling->False, original unscaled values are used.
- StreamColorFunction->"name" is equivalent to StreamColorFunction->(ColorData["name"][#i]&) where the slot used is as follows: StreamPlot, ListStreamPlot, etc.:
(Norm[{vx, vy}]), StreamDensityPlot, ListStreamDensityPlot etc.:
(s), VectorPlot3D and ListVectorPlot3D:
(Norm[{vx, vy, vz}]). - The list of possible color function names is given by ColorData["Gradients"].
- The function specified by StreamColorFunction must return color directives such as RGBColor and Hue or named colors such as Red and Blue.
- It can also return Opacity, as well as Glow and Specularity.
- Combinations of directives can be specified using Directive[g1, g2, ...].
New in 7
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »


