ColorDataFunction
ColorDataFunction[range,…]
カラースキームを表す関数である.
詳細
- ColorDataFunctionはFunctionのように働く.
- ColorDataFunction[…][par]は,ColorDataFunctionで表されるカラースキーム中のパラメータ par に対応する色を求める.
- ColorData["scheme"]はColorDataFunctionオブジェクトを返す.
例題
すべて開く すべて閉じる例 (3)
ColorDataはColorDataFunctionオブジェクトを返す:
ColorData["LightTemperatureMap"]f = ColorData["HTML"]f["Azure"]f = ColorData["DarkRainbow"]ContourPlot[y + Sin[x ^ 2 + 3y], {x, -3, 3}, {y, -3, 3}, ColorFunction -> f]スコープ (5)
ColorDataはColorDataFunctionオブジェクトを返す:
ColorData["GrayYellowTones"]ColorData[12]ColorData["HTML"]ColorData["VisibleSpectrum"]ColorDataFunctionは,特定範囲内の値に適用されるとRGBカラーを返す:
ColorData["GrayYellowTones"][.5]ColorData[5][7]ColorData["HTML"]["WhiteSmoke"]ColorData["VisibleSpectrum"][550]ColorData["GrayYellowTones", "Range"]f = ColorData["GrayYellowTones"]f[.5]ColorData["VisibleSpectrum", "Range"]g = ColorData["VisibleSpectrum"]g[600]ColorData[3, "Range"]Range@@%f = ColorData[3]f[5]Short[ColorData["HTML", "Range"]]f = ColorData["HTML"]f["Maroon"]特性と関係 (2)
階調度と物理スキームからのColorDataFunctionは範囲外の値を切り取る:
f = ColorData["WatermelonColors"]DensityPlot[x, {x, -1, 2}, {y, 0, 1}, ColorFunction -> (f[#]&), ColorFunctionScaling -> False]指数付きのスキームからのColorDataFunctionは色を周期的に繰り返す:
f = ColorData[32]ArrayPlot[{Range[40]}, ColorFunction -> f, ColorFunctionScaling -> False, AspectRatio -> .3]考えられる問題 (1)
ColorFunctionスロットが複数あるプロットでは,指定がない場合は最初のスロットが選ばれる:
f = ColorData["Rainbow"]Plot3D[ Exp[1 - x^2 - y^2], {x, -2, 2}, {y, -2, 2}, ColorFunction -> f, PlotRange -> All, Mesh -> None]Plot3D[ Exp[1 - x^2 - y^2], {x, -2, 2}, {y, -2, 2}, ColorFunction -> Function[{x, y, z}, f[z]], PlotRange -> All, Mesh -> None]関連するガイド
-
▪
- カラースキーム
テキスト
Wolfram Research (2007), ColorDataFunction, Wolfram言語関数, https://reference.wolfram.com/language/ref/ColorDataFunction.html.
CMS
Wolfram Language. 2007. "ColorDataFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ColorDataFunction.html.
APA
Wolfram Language. (2007). ColorDataFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ColorDataFunction.html
BibTeX
@misc{reference.wolfram_2026_colordatafunction, author="Wolfram Research", title="{ColorDataFunction}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/ColorDataFunction.html}", note=[Accessed: 02-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_colordatafunction, organization={Wolfram Research}, title={ColorDataFunction}, year={2007}, url={https://reference.wolfram.com/language/ref/ColorDataFunction.html}, note=[Accessed: 02-September-2026]}