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

ListDensityPlot

Updated In 6 Graphic
ListDensityPlot[array]
generates a smooth density plot from an array of values.
ListDensityPlot[{{x1, y1, f1}, {x2, y2, f2}, ...}]
generates a density plot with values defined at specified points.
  • ListDensityPlot[array] arranges successive rows of array up the page, and successive columns across.
  • ListDensityPlot linearly interpolates values so as to give smooth shading.
  • ListDensityPlot is mainly intended for discrete samplings of continuous data; ArrayPlot is intended for purely discrete data.
  • ListDensityPlot by default generates output in which larger values are shown lighter.
AspectRatio1ratio of height to width
BoundaryStyleNonehow to draw RegionFunction boundaries
ClippingStyleNonehow to draw values clipped by PlotRange
ColorFunctionAutomatichow to color the plot
ColorFunctionScalingTruewhether to scale the argument to ColorFunction
DataRangeAutomaticthe range of x and y values to assume for data
FrameTruewhether to draw a frame around the plot
FrameTicksAutomaticframe tick marks
InterpolationOrderNonethe polynomial degree in each variable of the interpolated density between data points
MaxPlotPointsAutomaticthe maximum number of points to include
MeshNonehow many mesh lines in each direction to draw
MeshFunctions{#1&,#2&}how to determine the placement of mesh lines
MeshStyleAutomaticthe style for mesh lines
MethodAutomaticthe method to use for interpolation and data reduction
PerformanceGoal$PerformanceGoalaspects of performance to try to optimize
PlotRange{Full,Full,Automatic}the range of f or other values to include
PlotRangePaddingAutomatichow much to pad the range of values
PlotRangeClippingTruewhether to clip at the plot range
RegionFunction(True&)how to determine whether a point should be included
VertexColorsAutomaticcolors to assume at every point
  • array should be a rectangular array of real numbers; holes will be left in the plot whenever there are elements that are not real numbers.
  • ListDensityPlot[array] by default takes the x and y coordinate values for each data point to be successive integers starting at 1.
  • The setting DataRange->{{xmin, xmax}, {ymin, ymax}} specifies other ranges of coordinate values to use.
  • With the default setting DataRange->Automatic, ListDensityPlot[{{a11, a12, a13}, ..., {an1, an2, an3}}] will assume that the data being given is {{x1, y1, f1}, ...}, rather than an n ⨯ 3 array of values.
  • ColorFunction is supplied with a single argument, given by default by the scaled value of f.
  • The setting for VertexColors must be an array or list with the same structure as the array or list of values.
New in 1 | Last modified in 6