|
SOLUTIONS
|
MATHEMATICA 内置符号
ColorFunction
是图形函数的一个选项,指明一个函数以用于确定元素的颜色.
更多信息更多信息
- 在 ColorFunction->func 时,应用于 func 的自变量如下:
-
Raster a Plot,ListLinePlot,ListLogPlot,等. x, y ParametricPlot x, y, u 或 x, y, u, v RegionPlot x, y ArrayPlot,ReliefPlot a ContourPlot和ListContourPlot f 等高线级别 DensityPlot和ListDensityPlot f ContourPlot3D,ListContourPlot3D x, y, z, f Plot3D,ListPlot3D,ListSurfacePlot3D,
和ListPointPlot3Dx, y, z ParametricPlot3D x, y, z, u 或 x, y, z, u, v RegionPlot3D x, y, z Image3D,Raster3D a - 在通常的缺省设置 ColorFunctionScaling->True 时,应用于 func 的所有自变量按比例调整尺寸以处于 0 到 1 的范围之内.
- 在 ColorFunctionScaling->False 时,使用未改变比例的原始值.
- ColorFunction->"name" 等价于 ColorFunction->(ColorData["name"][#i]&),其中使用的槽如下: Plot, ListPlot, 等:
(
);ArrayPlot, ReliefPlot:
(
);ContourPlot, DensityPlot,等:
(
);ContourPlot3D, 等:
(
); Plot3D, 等:
(
). - 可能的颜色函数名称的列表由 ColorData["Gradients"] 给出.
- 由 ColorFunction 指定的函数必须返回颜色指示,如 RGBColor 和 Hue,或者命名颜色如 Red 和 Blue.
- 它也可以返回 Opacity,以及 Glow 和 Specularity.
- 指示的组合可以利用 Directive[g1, g2, ...] 指定.
- 在三维图形中,ColorFunction 缺省为曲面指定扩散的颜色.
- 如果对 ColorRules, MeshShading 或 ContourShading 给出一个显式设置, 它是优先于对 ColorFunction 的设置而使用的.
版本 2 的新功能 | 版本 9 修改功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »





