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

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.
  • 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.
By default lists of y values are assumed to have integer x values:
Use DataRange to specify a different range of x values:
Specify the x,y coordinate range for tabular data:
By default lists of y values are assumed to have integer x values:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
Use DataRange to specify a different range of x values:
In[3]:=
Click for copyable input
Out[3]=
 
Specify the x,y coordinate range for tabular data:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
New in 5.1