I want to make a plot of data with big values by x. My code is this
myList = {{10^15, 1}, {10^15 + 1, 1.2}, {10^15 + 2, 1.5}, {10^15 + 3, 1.1}}
ListPlot[myList, PlotRange -> {{10^15, 10^15 + 3}, {0, 2}}]
but when I get a plot, it looks like x always the same
and look like mathematica ignores my PlotRange and make it from 0 to 2*10^15.
How can I force mathematica to make x axis from 10^15 to 10^15 + 3?
UPDATE1
I also have similar problem if I want to plot function like this
Plot[Sin[x],{x,10^15, 10^15 + 3}]
of course if I convert it to the Table and use solution from Simon Rochester's answer, it will work.
ListPlot[Transpose[Transpose[Table[{x,Sin[x]}, {x,10^15, 10^15 + 3, 0.1}]] - {10^15, 0}], PlotRange -> {{0, 3}, {-1, 1}}]
but is there any way to do it directly with Plot[]?
I put this example to mathematica cloud. I hope it will work for everyone.
UPDATE2
I can do it with Plot of function like this
Plot[Sin[10^15+x],{x,0, 3}]
4.398046511103750*^13
, which doesn't have much numerical relevance as far as I know. $\endgroup$Graphics
, but perhaps it is merely a design limitation or I misunderstand. e.g.Graphics[Point[myList], PlotRange -> {{10^15, 10^15 + 3}, {0, 2}}, AspectRatio -> 1/GoldenRatio, Axes -> True]
also does not work "correctly." $\endgroup$Plot[Sin[10^15 + x], {x, 0, 3}, WorkingPrecision -> 20]
$\endgroup$