When the data
a = Table[Sin[x], {x, 1, 20, 0.1}];
ListPlot[0.1 *a]
is plotted, one finds that the range of x-axes is labeled as 0 to 200:
How can one reset the calibration so that the axis shows the range only up to 20?
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this community
ListPlot
gives you that axis. You want to have 2D points:ListPlot[Transpose[{Range[1, 20, .1], a}]]
. This gives you a list of {x, y} pairs instead of a single list of values. $\endgroup$