generates a relief image of an array of height values.

Details and Options


open allclose all

Basic Examples  (3)

Use elevation data to display shaded terrain:

Relief shading of an image to enhance details:

Display density data with shading:

Scope  (1)

Shadings with no color:

Use predefined gradients:

Options  (17)

ClippingStyle  (3)

Clipped regions are not shown by default:

Use pink to fill the clipped regions:

Use gray where the surface is clipped at the top and purple where it is clipped at the bottom:

ColorFunction  (5)

Shadings with no color:

Color by scaled coordinate:

Specify gray-level intensity by scaled coordinate:

Named color gradients color in the direction:

Use brightness to correspond to the height or density of a function:

LightingAngle  (4)

By default, the simulated lighting is placed at , or the top-left corner, with altitude :

Place the light source at 180°, or the left side:

Place the light source at 0°, or the right side of the map, with altitude:

The result with no shading:

Method  (2)

Normally, the "DiffuseReflection" method is used for shading:

Use the "AspectBasedShading" method:

PlotRange  (3)

Normally, ReliefImage uses all points to compute the range:

Automatically compute the range and clip extreme portions of it:

Specify the range to emphasize features:

Possible Issues  (1)

Define two consecutive datasets:

Due to -value scaling, two results may not be consistent:

By specifying the same plot range, two results become consistent with each other:

Neat Examples  (2)

A sum of quotients of norms seen in relief:

Sample a sum of five sine waves in random directions:

Wolfram Research (2010), ReliefImage, Wolfram Language function,


Wolfram Research (2010), ReliefImage, Wolfram Language function,


Wolfram Language. 2010. "ReliefImage." Wolfram Language & System Documentation Center. Wolfram Research.


Wolfram Language. (2010). ReliefImage. Wolfram Language & System Documentation Center. Retrieved from


@misc{reference.wolfram_2024_reliefimage, author="Wolfram Research", title="{ReliefImage}", year="2010", howpublished="\url{}", note=[Accessed: 30-May-2024 ]}


@online{reference.wolfram_2024_reliefimage, organization={Wolfram Research}, title={ReliefImage}, year={2010}, url={}, note=[Accessed: 30-May-2024 ]}