|
SOLUTIONS
|
MATHEMATICA 内置符号
StreamColorFunction
StreamColorFunction
StreamPlot 和相关函数的选项,指定应用一个函数来决定沿着流线的颜色变化.
更多信息更多信息
- 沿着每个流线 StreamColorFunction 作用在每个点上确定流线使用的颜色.
- 设置 StreamColorFunction->func,func 的参数是下列形式:
-
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}] - 通常缺省设置是 StreamColorFunctionScaling->True,func 的参数缩放到 0 到 1 的范围.
- 在 StreamColorFunctionScaling->False 下,使用未缩放的原值.
- StreamColorFunction->"name" 等价于 StreamColorFunction->(ColorData["name"][#i]&),其中使用的参数可以是下列形式: StreamPlot,ListStreamPlot 等等:
(Norm[{vx, vy}]), StreamDensityPlot, ListStreamDensityPlot 等等:
(s),VectorPlot3D 和 ListVectorPlot3D:
(Norm[{vx, vy, vz}]). - 可能的颜色函数名称列表由 ColorData["Gradients"] 给出.
- StreamColorFunction 指定的函数必须返回诸如 RGBColor 和 Hue 的颜色指令,或诸如 Red 和 Blue 的已命名颜色.
- 它也返回 Opacity、Glow 和 Specularity.
- 指令组合可以用 Directive[g1, g2, ...] 指定.
版本 7 的新功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »


