# ListPlot - set x axis to label in integer steps. [closed]

Calling ListPlot[{0, 0.1, 0.2}, DataRange -> {0, 2}] produces a plot with markers in $x = 0.5$, $x = 1$, $x = 1.5$, and $x=2.0$.

I want to have markers only in $x = 0$, $x=1$, and $x=2$ (the integers). How can I do this?

• Ticks -> {{0,1,2,3,4,5}, Automatic} ? – BlacKow Jul 8 '16 at 20:00
• or Ticks -> {Range[0,2,1], Automatic} – David G. Stork Jul 8 '16 at 20:04

ListPlot[