DensityPlot

DensityPlot[f,{x,xmin,xmax},{y,ymin,ymax}]

makes a density plot of f as a function of x and y.

DensityPlot[f,{x,y}reg]

takes the variables {x,y} to be in the geometric region reg.

Details and Options

Examples

open allclose all

Basic Examples  (4)

Plot a function:

In[1]:=
Click for copyable input
Out[1]=

Use a different color scheme and legend:

In[1]:=
Click for copyable input
Out[1]=

Add an overlay mesh:

In[1]:=
Click for copyable input
Out[1]=

Create a contouring overlay mesh:

In[1]:=
Click for copyable input
Out[1]=

Scope  (17)

Options  (70)

Applications  (7)

Properties & Relations  (8)

Possible Issues  (2)

Neat Examples  (2)

See Also

ListDensityPlot  DensityPlot3D  SliceDensityPlot3D  ContourPlot  ArrayPlot  Plot3D  StreamPlot  VectorPlot  StreamDensityPlot  VectorDensityPlot  ColorFunction  RegionPlot

Tutorials

Introduced in 1988
(1.0)
| Updated in 2017
(11.1)