ReliefPlot[array]
高さの値の配列の起伏図を生成する.
ReliefPlot
ReliefPlot[array]
高さの値の配列の起伏図を生成する.
詳細とオプション
- ReliefPlot[array]は,array の連続する行をページの上の方に向けて揃え,連続する列は横方向に揃える.
- ReliefPlotには,Graphicsと同じオプションに以下の追加・変更を加えたものが使える. [全オプションのリスト]
-
AspectRatio Automatic 縦横比 Axes False 座標軸を描くかどうか BoxRatios Automatic 効果的な3D境界ボックスの割合 ClippingStyle None 表面の切り取られた部分の描き方 ColorFunction Automatic 表面の色の決定方法 ColorFunctionScaling True ColorFunctionの引数をスケールするかどうか DataRange Automatic データに仮定する
と
の値の範囲DataReversed False 行の順序を逆にするかどうか Frame True プロット周囲に枠を描くかどうか FrameTicks None 枠にどのような目盛を入れるか LightingAngle Automatic 使用する実質的な擬似光源の角度 MaxPlotPoints Automatic 含める点の最大数 Mesh False メッシュを描くかどうか MeshStyle Automatic メッシュラインのスタイル Method Automatic 使用するメソッド PerformanceGoal $PerformanceGoal パフォーマンスのどの面について最適化するか PlotLegends None 曲面の凡例 PlotRange {Full,Full,All} 含める
や他の値の範囲PlotRangeClipping True プロット範囲で切り取るかどうか PlotRangePadding Automatic 値の範囲をどの程度充填するか PlotTheme $PlotTheme プロットの全体的なテーマ - ReliefPlot[array]では,array は,各要素が
値を表す1つの実数である矩形配列でなければならない. - 表面の,明示的な高さの値を表さない配列要素に対応する部分には穴が開く.
- ReliefPlot[array]はデフォルトで,各データ点の
座標と
座標の値が1から始まる連続する整数であるとする.他の座標はDataRangeを使って指定することができる. - Methodの可能な設定値には,"DiffuseReflection"と"AspectBasedShading"がある.
- PerformanceGoalの設定値によっては,他の特定のオプション設定を無効にするものもある.
全オプションのリスト
例題
すべて開く すべて閉じる例 (3)
ReliefPlot[Import["http://exampledata.wolfram.com/hailey.dem.gz", "Data"], ColorFunction -> "GreenBrownTerrain"]ReliefPlot[Table[i + Sin[i ^ 2 + j ^ 2], {i, -4, 4, .03}, {j, -4, 4, .03}], ColorFunction -> "SunsetColors"]ReliefPlot[Import["http://exampledata.wolfram.com/hailey.dem.gz", "Data"], ColorFunction -> "LightTerrain", PlotLegends -> Automatic]スコープ (14)
データ (6)
デフォルトで,
と
のデータ範囲は整数値であるとみなされる:
ReliefPlot[Table[i + Sin[j ^ 2 + 3i], {i, -4, 4, .05}, {j, -4, 4, .05}], FrameTicks -> True]DataRangeを使って
と
のデータ範囲を明示的に与える:
ReliefPlot[Table[i + Sin[j ^ 2 + 3i], {i, -4, 4, .05}, {j, -4, 4, .05}], DataRange -> {{-4, 4}, {-4, 4}}, FrameTicks -> True]DataReversedを使って
のデータ範囲を逆にする:
ReliefPlot[Table[i + Sin[j ^ 2 + 3i], {i, -4, 4, .05}, {j, -4, 4, .05}], DataRange -> {{-4, 4}, {-4, 4}}, FrameTicks -> True, DataReversed -> True]MaxPlotPointsを使って使用する点の数を制限する:
Table[ReliefPlot[Table[i + Sin[j ^ 2 + 3i], {i, -4, 4, .05}, {j, -4, 4, .05}], MaxPlotPoints -> mp, FrameTicks -> True], {mp, {Infinity, 25, 10}}]PlotRange->Automaticを使って範囲外の部分を除去することができる:
ReliefPlot[Table[Im[Sec[(i + I j) ^ 2]], {i, -3, 3, .02}, {j, -3, 3, .02}], PlotRange -> Automatic]{ReliefPlot[Table[Im[Sec[(i + I j) ^ 2]], {i, -3, 3, .02}, {j, -3, 3, .02}], PlotRange -> All],
ReliefPlot[Table[Im[Sec[(i + I j) ^ 2]], {i, -3, 3, .02}, {j, -3, 3, .02}], PlotRange -> {-1, 1}]}プレゼンテーション (8)
ReliefPlot[Table[i + Sin[j ^ 2 + 3i], {i, -4, 4, .05}, {j, -4, 4, .05}], FrameLabel -> {j, i}, PlotLabel -> i + Sin[j ^ 3 + 3i]]ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> None]ReliefPlot[Table[i + Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> (Hue[#, .7, .9]&)]ReliefPlot[Table[i + Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> "StarryNightColors"]ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> None, LightingAngle -> Pi / 4]Table[ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> None, BoxRatios -> {1, 1, b}], {b, {Automatic, .1, 1}}]ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], Method -> "AspectBasedShading", ColorFunction -> None]ReliefPlot[Table[i + Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> "AvocadoColors", Mesh -> 8, FrameTicks -> True]ReliefPlot[Table[i + Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> "AvocadoColors", PlotLegends -> Automatic]ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], PlotTheme -> "Web"]オプション (105)
AspectRatio (4)
ReliefPlot[Table[i + Sin[i^3 + j^3], {i, -5, 5, .03}, {j, -5, 5, .03}]]AspectRatio1として高さと幅を等しくする:
ReliefPlot[Table[i + Sin[i^3 + j^3], {i, -5, 5, .03}, {j, -5, 5, .03}], AspectRatio -> 1]ReliefPlot[Table[i + Sin[i^3 + j^3], {i, -5, 5, .03}, {j, -5, 5, .03}], AspectRatio -> 1 / 2]AspectRatioFullとすると,他の構造物内にぴったり納まるように高さと幅が調整される:
plot = ReliefPlot[Table[i + Sin[i^3 + j^3], {i, -5, 5, .03}, {j, -5, 5, .03}], AspectRatio -> Full];{Framed[Pane[plot, {50, 100}]], Framed[Pane[plot, {100, 100}]], Framed[Pane[plot, {100, 50}]]}Axes (3)
デフォルトで,ReliefPlotは軸ではなく枠を使う:
ReliefPlot[Table[i + Sin[i^3 + j^3], {i, -5, 5, .03}, {j, -5, 5, .03}]]ReliefPlot[Table[i + Sin[i^3 + j^3], {i, -5, 5, .03}, {j, -5, 5, .03}], Frame -> False, Axes -> True]{ReliefPlot[Table[i + Sin[i^3 + j^3], {i, -5, 5, .03}, {j, -5, 5, .03}], Frame -> False, Axes -> {True, False}], ReliefPlot[Table[i + Sin[i^3 + j^3], {i, -5, 5, .03}, {j, -5, 5, .03}], Frame -> False, Axes -> {False, True}]}AxesLabel (3)
ReliefPlot[Table[i + Sin[i^3 + j^3], {i, -5, 5, .03}, {j, -5, 5, .03}], Frame -> False, Axes -> True]ReliefPlot[Table[i + Sin[i^3 + j^3], {i, -5, 5, .03}, {j, -5, 5, .03}], Frame -> False, Axes -> True, AxesLabel -> y]ReliefPlot[Table[i + Sin[i^3 + j^3], {i, -5, 5, .03}, {j, -5, 5, .03}], Frame -> False, Axes -> True, AxesLabel -> {x, y}]AxesOrigin (2)
ReliefPlot[Table[i + Sin[i^3 + j^3], {i, -5, 5, .03}, {j, -5, 5, .03}], Frame -> False, Axes -> True]ReliefPlot[Table[i + Sin[i^3 + j^3], {i, -5, 5, .03}, {j, -5, 5, .03}], Frame -> False, Axes -> True, AxesOrigin -> {170, 170}]AxesStyle (4)
ReliefPlot[Table[i + Sin[i^3 + j^3], {i, -5, 5, .03}, {j, -5, 5, .03}], Frame -> False, Axes -> True, AxesStyle -> StandardGreen]ReliefPlot[Table[i + Sin[i^3 + j^3], {i, -5, 5, .03}, {j, -5, 5, .03}], Frame -> False, Axes -> True, AxesStyle -> {{Thick, Red}, {Thick, Blue}}]ReliefPlot[Table[i + Sin[i^3 + j^3], {i, -5, 5, .03}, {j, -5, 5, .03}], Frame -> False, Axes -> True, AxesStyle -> Green, TicksStyle -> Blue]ReliefPlot[Table[i + Sin[i^3 + j^3], {i, -5, 5, .03}, {j, -5, 5, .03}], Frame -> False, Axes -> True, AxesStyle -> Green, LabelStyle -> Blue]BoxRatios (3)
ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> None, BoxRatios -> Automatic]全体的な陰影の付け方が3Dプロットのボックス比{1,1,5}に近くなるように設定される:
ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> None, BoxRatios -> {1, 1, .5}]Table[ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .08}, {j, -4, 4, .08}], ColorFunction -> None, BoxRatios -> {1, 1, b}], {b, {.05, .2, 1}}]ClippingStyle (4)
ReliefPlot[Table[Im[Sec[(i + I j) ^ 2]], {i, -3, 3, .03}, {j, -3, 3, .03}], PlotRange -> Automatic]ReliefPlot[Table[Im[Sec[(i + I j) ^ 2]], {i, -3, 3, .03}, {j, -3, 3, .03}], ClippingStyle -> Automatic, PlotRange -> Automatic]ReliefPlot[Table[Im[Sec[(i + I j) ^ 2]], {i, -3, 3, .03}, {j, -3, 3, .03}], ClippingStyle -> Pink, PlotRange -> Automatic]ReliefPlot[Table[Im[Sec[(i + I j) ^ 2]], {i, -3, 3, .03}, {j, -3, 3, .03}], ClippingStyle -> {Purple, Gray}, PlotRange -> Automatic]ColorFunction (6)
ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> None]ReliefPlot[Table[y + Sin[x ^ 2 + y ^ 2], {x, -4, 4, 0.05}, {y, -4, 4, 0.05}], ColorFunction -> Hue]スケールされた
座標の値によってグレーレベルの強度を設定する:
ReliefPlot[Table[x + Sin[3x + y ^ 2], {x, -4, 4, 0.05}, {y, -4, 4, 0.05}], ColorFunction -> GrayLevel]ReliefPlot[Table[x + Sin[3x + y ^ 2], {x, -4, 4, 0.05}, {y, -4, 4, 0.05}], ColorFunction -> "SunsetColors"]ReliefPlot[Table[x + Sin[3x + y ^ 2], {x, -4, 4, 0.05}, {y, -4, 4, 0.05}], ColorFunction -> (Hue[2 / 5, 3 / 4, #]&)]ReliefPlot[Table[x + Sin[3x + y ^ 2], {x, -4, 4, 0.05}, {y, -4, 4, 0.05}], ColorFunction -> (Blend[{Magenta, Cyan}, #]&)]ColorFunctionScaling (1)
実際の標高データにはスケールされている色関数が不適切な場合がある:
data = Import["http://exampledata.wolfram.com/e100n40.tar.gz", {"GTOPO30", "Data"}];ReliefPlot[data, ColorFunction -> "GreenBrownTerrain", BoxRatios -> {1, 1, .05}]代りにスケールされていない色関数を使い,標高を正しく表示する:
ReliefPlot[data, ColorFunction -> "HypsometricTints", ColorFunctionScaling -> False, BoxRatios -> {1, 1, .05}]DataRange (2)
ReliefPlot[Table[i + Sin[j ^ 2 + 3i], {i, -4, 4, .05}, {j, -4, 4, .05}], FrameTicks -> True]ReliefPlot[Table[i + Sin[j ^ 2 + 3i], {i, -4, 4, .05}, {j, -4, 4, .05}], DataRange -> {{-4, 4}, {-4, 4}}, FrameTicks -> True]DataReversed (1)
Frame (4)
ReliefPlotは,デフォルトで,枠を使う:
ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}]]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], Frame -> False]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], Frame -> {{True, True}, {False, False}}]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], Frame -> {{True, False}, {True, False}}]FrameLabel (3)
ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], FrameLabel -> {"label"}]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], FrameLabel -> {"Bottom", "Left"}]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], FrameLabel -> {{"left", "right"}, {"bottom", "top"}}]FrameStyle (2)
ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.1}, {j, -2, 2, 0.1}], FrameTicks -> True, FrameStyle -> Directive[StandardGray, Thick]]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.1}, {j, -2, 2, 0.1}], FrameTicks -> True, FrameStyle -> {{Directive[Green, Thick], Directive[Red]}, {Directive[Gray, Thick], Directive[Blue]}}]FrameTicks (9)
ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}]]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], FrameTicks -> True]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], FrameTicks -> {{None, None}, {Automatic, None}}]デフォルトで,上と右の辺には目盛は置かれるが目盛ラベルは置かれない:
ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], FrameTicks -> Automatic]Allを使ってすべての辺に目盛ラベルを含める:
ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], FrameTicks -> All]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], FrameTicks -> {{{0, 20, 32}, {0, 20, 32}}, {{0, 20, 40}, {0, 20, 40}}}]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], FrameTicks -> {{{{0, a}, {20, b}, {32, c}}, Automatic}, {{{0, a}, {20, b}, {40, d}}, Automatic}}]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], FrameTicks -> {{{{40, a, .2}, {20, b, .2}, {32, c, .2}}, Automatic}, {{{10, a, .2}, {40, b, .5}, {70, d, .2}}, Automatic}}]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], FrameTicks -> {{{{40, a, {.2, .2}}, {32, b, {.2, .15}}, {20, c, {.2, .1}}}, Automatic}, {Automatic, Automatic}}]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], FrameTicks -> {{{{40, a, {.2, .15}, Directive[Thick, Blue]}, {32, b, {.2, .1}, Directive[Thick, Darker@Green, Dashed]}, {20, c, {.2, 0.05}, Directive[Thick, Red]}}, Automatic}, {Automatic, Automatic}}]minMeanMax[min_, max_] := {{min, min}, {(max + min) / 2, (max + min) / 2}, {max, max}}ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], FrameTicks -> {{minMeanMax, None}, {minMeanMax, None}}, PlotRangePadding -> None]FrameTicksStyle (3)
デフォルトで,枠目盛と枠目盛ラベルには枠と同じスタイルが使われる:
ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], FrameTicks -> True, FrameStyle -> Directive[Red]]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], FrameTicks -> True, FrameTicksStyle -> Directive[Red, Thick]]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], FrameTicks -> True, FrameTicksStyle -> {{Directive[Green, Thick], Blue}, {Red, Darker@Green}}]ImageSize (7)
Tiny,Small,Medium,Largeのような名前付きのサイズを使う:
{ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ImageSize -> Tiny], ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ImageSize -> Small]}{ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ImageSize -> 150], ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], AspectRatio -> 1.5, ImageSize -> 150]}{ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ImageSize -> {Automatic, 150}], ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], AspectRatio -> 2, ImageSize -> {Automatic, 150}]}{ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ImageSize -> UpTo[200]], ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], AspectRatio -> 2, ImageSize -> UpTo[200]]}グラフィックスの幅と高さを指定して,必要な場合はスペースで充填する:
ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ImageSize -> {200, 250}, Background -> LightBlue]AspectRatioFullと設定すると,使用可能なスペースが塗り潰される:
ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], AspectRatio -> Full, ImageSize -> {200, 250}, Background -> LightBlue]{ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ImageSize -> {UpTo[150], UpTo[100]}], ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], AspectRatio -> 2, ImageSize -> {UpTo[150], UpTo[100]}]}ImageSizeFullを使ってオブジェクト内の使用可能なスペースを塗り潰す:
Framed[Pane[ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ImageSize -> Full, Background -> LightBlue], {200, 200}]]Framed[Pane[ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], AspectRatio -> Full, ImageSize -> {Scaled[0.5], Scaled[0.5]}, Background -> LightBlue], {200, 200}]]LightingAngle (4)
デフォルトでは,擬似照明は
の位置,つまり左上に置かれ,高度は
である:
ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> None]ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], LightingAngle -> 180°, ColorFunction -> None]ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> None, LightingAngle -> {0, Pi / 12}]ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], LightingAngle -> None]MaxPlotPoints (2)
ReliefPlotは通常データに含まれるすべての点を使う:
ReliefPlot[Table[i + Sin[j ^ 2 + 3i], {i, -4, 4, .05}, {j, -4, 4, .05}], FrameTicks -> True]ReliefPlot[Table[i + Sin[j ^ 2 + 3i], {i, -4, 4, .05}, {j, -4, 4, .05}], MaxPlotPoints -> 30, FrameTicks -> True]Mesh (5)
ReliefPlot[Table[i + Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> "AvocadoColors"]Table[ReliefPlot[Table[i + Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> "AvocadoColors", Mesh -> All, MaxPlotPoints -> m], {m, {Infinity, 25, 10}}]ReliefPlot[Table[i + Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> "AvocadoColors", Mesh -> 8, FrameTicks -> True]ReliefPlot[Table[i + Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> "AvocadoColors", Mesh -> {{50, 110}, {50, 110}}, FrameTicks -> True]ReliefPlot[Table[i + Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> "AvocadoColors", Mesh -> {{{80, Thick}}, {{80, Red}}}, FrameTicks -> True]MeshStyle (3)
ReliefPlot[Table[i + Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> "AvocadoColors", Mesh -> 8]ReliefPlot[Table[i + Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> "AvocadoColors", Mesh -> {{50, 110}, {50, 110}}, MeshStyle -> Directive[Red, Dashed], FrameTicks -> True]MeshStyleと共に個々にスタイルが設定されたメッシュを使うことができ,それらは優先される:
ReliefPlot[Table[i + Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> "AvocadoColors", Mesh -> {{{80, Thick}}, {{80, Directive[Blue, Dashed]}}}, MeshStyle -> Orange, FrameTicks -> True]Method (2)
通常,"DiffuseReflection"メソッドが陰影に使われる:
ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], Method -> "DiffuseReflection", ColorFunction -> None]ReliefPlot[Table[Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], Method -> "AspectBasedShading", ColorFunction -> None]PerformanceGoal (2)
Timing[ReliefPlot[Table[i + Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], PerformanceGoal -> "Quality"]]Timing[ReliefPlot[Table[i + Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], PerformanceGoal -> "Speed"]]PlotLegends (6)
ReliefPlot[Table[i + Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], PlotLegends -> Automatic]ReliefPlot[Table[i + Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}]]PlotLegendsは,自動的にColorFunctionおよびColorFunctionScalingの値を拾う:
ReliefPlot[Table[i + Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> "AvocadoColors", PlotLegends -> Automatic]BarLegendを使って凡例の外観を変える:
ReliefPlot[Table[i + Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> "SunsetColors", PlotLegends -> BarLegend[Automatic, LegendLabel -> "z-value"]]data = Import["http://exampledata.wolfram.com/e100n40.tar.gz", {"GTOPO30", "Data"}];ReliefPlot[data, ColorFunction -> "HypsometricTints", ColorFunctionScaling -> False, BoxRatios -> {1, 1, .05}, PlotLegends -> BarLegend[Automatic, LegendLabel -> "height(m)"]]Placedを使って凡例の置き方を変える:
ReliefPlot[Table[j + Sin[i ^ 2 + j ^ 2], {i, -4, 4, .05}, {j, -4, 4, .05}], ColorFunction -> "SunsetColors", PlotLegends -> Placed[Automatic, Below]]PlotRange (5)
通常,ReliefPlotはすべての点を使い,範囲を計算する:
ReliefPlot[Table[Im[Sec[(i + I j) ^ 2]], {i, -3, 3, .02}, {j, -3, 3, .02}], PlotRange -> All]ReliefPlot[Table[Im[Sec[(i + I j) ^ 2]], {i, -3, 3, .02}, {j, -3, 3, .02}], PlotRange -> Automatic, FrameTicks -> True]ReliefPlot[Table[Im[Sec[(i + I j) ^ 2]], {i, -3, 3, .02}, {j, -3, 3, .02}], PlotRange -> {{100, 200}, {200, 300}}, FrameTicks -> True]ReliefPlot[Table[Im[Sec[(i + I j) ^ 2]], {i, -3, 3, .02}, {j, -3, 3, .02}], DataRange -> {{-3, 3}, {-3, 3}}, PlotRange -> {{-1, 1}, {1, 3}}, FrameTicks -> True]ReliefPlot[Table[Im[Sec[(i + I j) ^ 2]], {i, -3, 3, .02}, {j, -3, 3, .02}], PlotRange -> {-.1, .5}, FrameTicks -> True]PlotRangeClipping (1)
PlotRangeでプロットを切り取る:
Table[ReliefPlot[Table[Im[Sec[(i + I j) ^ 2]], {i, -3, 3, .02}, {j, -3, 3, .02}], PlotRange -> {{100, 200}, {200, 300}}, PlotRangeClipping -> c, FrameTicks -> True], {c, {False, True}}]PlotTheme (1)
ReliefPlot[Table[x + Sin[3x + y ^ 2], {x, -4, 4, 0.05}, {y, -4, 4, 0.05}], PlotTheme -> "Minimal"]ReliefPlot[Table[x + Sin[3x + y ^ 2], {x, -4, 4, 0.05}, {y, -4, 4, 0.05}], PlotTheme -> "Minimal", ColorFunction -> "GreenPinkTones"]Ticks (9)
ReliefPlot[Table[Sin[j ^ 2 + i], {i, -Pi, Pi, 0.05}, {j, -Pi, Pi, 0.05}], Frame -> False, Axes -> True]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -Pi, Pi, 0.05}, {j, -Pi, Pi, 0.05}], Frame -> False, Axes -> True, Ticks -> None]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -Pi, Pi, 0.05}, {j, -Pi, Pi, 0.05}], Frame -> False, Axes -> True, Ticks -> {Automatic, None}]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], Frame -> False, Axes -> True, Ticks -> {{10, 20, 40}, {10, 20, 35}}]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], Frame -> False, Axes -> True, Ticks -> {{{5, "a"}, {35, "b"}, {40, "c"} }, {{35, "b"}, {45, "d"}}}]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], Frame -> False, Axes -> True, Ticks -> {{{5, "a"}, {35, "b"}, {50, "c"} }, Automatic}]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], Frame -> False, Axes -> True, Ticks -> {{{5, "a", .33}, {35, "b", .55}, {70, "c", .16} }, Automatic}]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], Frame -> False, Axes -> True, Ticks -> {{{5, "a", {.33, .15}}, {35, "b", {.55, .1}}, {70, "c", .16} }, Automatic}]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], Frame -> False, Axes -> True, Ticks -> {{{20, "a", .12, Directive[Thick, Green]}, {60, "c", .24, Directive[Thick, Yellow]} }, {{20, "a", .05, Directive[Thick, Dashed, Red]}, {40, "b", .16, Directive[Thick, Blue, Dashed]}}}]minMeanMax[min_, max_] := {{min, min}, {(max + min) / 2, (max + min) / 2}, {max, max}}ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], Frame -> False, Axes -> True, Ticks -> {minMeanMax, minMeanMax}, PlotRangePadding -> None]TicksStyle (4)
デフォルトで,目盛と目盛ラベルには軸と同じスタイルが使われる:
ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], Frame -> False, Axes -> True, AxesStyle -> Red]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], Frame -> False, Axes -> True, TicksStyle -> Red]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], Frame -> False, Axes -> True, TicksStyle -> {Directive[Green, Thick], Directive[Blue]}]ReliefPlot[Table[Sin[j ^ 2 + i], {i, -2, 2, 0.05}, {j, -2, 2, 0.05}], Frame -> False, Axes -> True, TicksStyle -> Directive[Red, Thick], LabelStyle -> Blue]特性と関係 (3)
Importの機能の中には,ReliefPlotを使い,陰影の付いたレリーフのある標高マップを表示するものもある:
Import[ "http://exampledata.wolfram.com/sdtsdem.tar.gz" ]GeoDensityPlotを使って地図に彩色する:
GeoDensityPlot[IconizedObject[«locs»] -> IconizedObject[«vals»]]ArrayPlot3Dをデータの3D配列に使う:
ArrayPlot3D[RandomInteger[5, {3, 4, 5}]]考えられる問題 (1)
data1 = Table[Sin[10i j]Exp[-j], {i, -1, 1, .01}, {j, 0, 1, .005}];
data2 = Table[Sin[10i j]Exp[-j], {i, -1, 1, .01}, {j, 1, 2, .005}];
の値のスケーリングにより,2つの結果に一貫性がないこともある:
Row[{ReliefPlot[data1], ReliefPlot[data2]}]同じプロット範囲を指定することにより,2つの結果の一貫性を保つことができる:
Row[{ReliefPlot[data1, PlotRange -> {-1, 1}], ReliefPlot[data2, PlotRange -> {-1, 1}]}]おもしろい例題 (2)
Table[ReliefPlot[Table[Evaluate[Sum[Product[Norm[{x, y} - RandomReal[{-3, 3}, {2}]], {i, j}] / Product[Norm[{x, y} - RandomReal[{-3, 3}, {2}]], {i, j}], {j, 1, 10}]], {x, -5, 5, .05}, {y, -5, 5, .05}], PlotRange -> Automatic, ColorFunction -> "Rainbow", ClippingStyle -> Darker[Red]], {3}]Table[ReliefPlot[Table[Evaluate[Sum[Sin[RandomReal[4, 2].{x, y}], {5}]], {x, 0, 10, .05}, {y, 0, 10, .05}], ColorFunction -> ColorData["DarkRainbow"]], {3}]テキスト
Wolfram Research (2007), ReliefPlot, Wolfram言語関数, https://reference.wolfram.com/language/ref/ReliefPlot.html (2014年に更新).
CMS
Wolfram Language. 2007. "ReliefPlot." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/ReliefPlot.html.
APA
Wolfram Language. (2007). ReliefPlot. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ReliefPlot.html
BibTeX
@misc{reference.wolfram_2026_reliefplot, author="Wolfram Research", title="{ReliefPlot}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/ReliefPlot.html}", note=[Accessed: 06-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_reliefplot, organization={Wolfram Research}, title={ReliefPlot}, year={2014}, url={https://reference.wolfram.com/language/ref/ReliefPlot.html}, note=[Accessed: 06-August-2026]}