This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)


generates a relief plot of an array of height values.
  • ReliefPlot[array] arranges successive rows of array up the page, and successive columns across.
AspectRatioAutomaticratio of height to width
AxesFalsewhether to draw axes
BoxRatiosAutomaticeffective 3D bounding box ratios
ClippingStyleNonehow to draw clipped parts of the surface
ColorFunctionAutomatichow to determine the color of surfaces
ColorFunctionScalingTruewhether to scale arguments to ColorFunction
DataRangeAutomaticthe range of and values to assume for data
DataReversedFalsewhether to reverse the order of rows
FrameTruewhether to draw a frame around the plot
FrameTicksNonewhat ticks to include on the frame
LightingAngleAutomaticeffective angle of the simulated light source
MaxPlotPointsAutomaticthe maximum number of points to include
MeshFalsewhether to draw a mesh
MeshStyleAutomaticthe style for mesh lines
MethodAutomaticthe method to use
PerformanceGoal$PerformanceGoalaspects of performance to try to optimize
PlotRange{Full,Full,All}the range of value. or other values to include
PlotRangeClippingTruewhether to clip at the plot range
PlotRangePaddingAutomatichow much to pad the range of values
  • In ReliefPlot[array], array must be a rectangular array, with each element a single real number representing a value.
  • There will be holes in the surface corresponding to array elements that do not represent explicit height values.
  • ReliefPlot[array] by default takes the and coordinate values for each data point to be successive integers starting at 1. Other coordinates can be specified using DataRange.
  • Possible settings for Method include and .
  • With some settings for PerformanceGoal, other specific option settings may be overridden.
Use elevation data to display shaded terrain:
Display density data with shading:
Use elevation data to display shaded terrain:
Click for copyable input
Display density data with shading:
Click for copyable input
By default, the and data ranges are taken to be integer values:
Provide explicit and data ranges by using DataRange:
Reverse the data range by using DataReversed:
Use MaxPlotPoints to limit the number of points used:
PlotRange->Automatic can be used to drop the outlying area:
Specify explicit ranges:
Add labels:
Shadings with no color:
Color the data by height:
Use predefined gradients:
Specify the direction where the simulated lighting is placed:
Specify the box ratios:
Use the method:
Provide overlay meshes:
Automatically choose appropriate box ratios:
Make overall shading closely match 3D plots with the box ratios :
Increasing the ratio produces more contrast in shading:
Clipped regions are not shown by default:
Color clipped regions like the rest of the plot:
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:
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:
Use the blend between two colors to indicate the height or density of a function:
Scaled color functions may not be suitable for real-world elevation data:
Instead, use a nonscaled color function for accurate representation of the elevation:
Arrays are displayed against the number of elements in each direction:
Rescale to the sampling space:
Reverse the range:
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 of the map:
Place the light source at 0°, or the right side of the map, with altitude:
The result with no shading:
ReliefPlot normally uses all the points in the dataset:
Limit the number of points used in each direction:
No mesh is used by default:
Show the final sampling meshes:
Provide 8 meshes in each direction:
Mesh lines at specific positions:
Specify the style of each mesh line:
Mesh lines are partially transparent by default:
Use red dashed lines for meshes:
Individually styled mesh lines can be used together with MeshStyle, and have higher priority:
Normally, the method is used for shading:
Use the method:
Generate a higher-quality plot:
Emphasize performance, possibly at the cost of quality:
Normally, ReliefPlot uses all points to compute the range:
Automatically compute the range and clip extreme portions of it:
Use an explicit range and range to focus on areas of interest:
PlotRange interacts with DataRange:
Specify the range to emphasize features:
Clip the plot at PlotRange:
Some Import functions use ReliefPlot to display elevation maps with shaded relief:
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:
A sum of quotients of norms seen in relief:
Sample a sum of 5 sine waves in random directions:
New in 6