|
SOLUTIONS
|
MATHEMATICA 内置符号
VectorColorFunction
VectorColorFunction
是 VectorPlot 和相关函数的一个选项,指定用于确定域向量颜色的函数.
更多信息更多信息
- VectorColorFunction 的设置应用于每个域向量中心相关的坐标,确定显示域向量的颜色.
- 设置 VectorColorFunction->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}] - 普通的缺省设置 VectorColorFunctionScaling->True,func 的参数缩放到 0 到 1 的范围中.
- 在 VectorColorFunctionScaling->False 下,使用原未缩放的值.
- VectorColorFunction->"name" 等价于 VectorColorFunction->(ColorData["name"][#i]&), 其中使用以下 slot:VectorPlot, ListVectorPlot 等:
(Norm[{vx, vy}]),VectorDensityPlot, ListVectorDensityPlot 等:
(s),VectorPlot3D 和 ListVectorPlot3D:
(Norm[{vx, vy, vz}]). - 可能的颜色函数名称列表由 ColorData["Gradients"] 给出.
- 由 VectorColorFunction 指定的函数必须返回诸如 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 »


