DataRange

DataRange

is an option for functions such as ListPlot and ListDensityPlot that specifies what range of actual coordinates the data should be assumed to occupy.

Details

  • For 1D data, a typical setting is DataRange->{xmin,xmax}.
  • For 2D and higher-dimensional data, a typical setting is {{xmin,xmax},{ymin,ymax},}.
  • For ArrayPlot, the settings for DataRange refer to the coordinates of the centers of each cell.

Examples

Basic Examples  (2)

By default lists of values are assumed to have integer values:

Use DataRange to specify a different range of values:

Specify the coordinate range for tabular data:

Introduced in 2004
 (5.1)