Black Lives Matter. Please consider donating to Black Girls Code today.

Ticks only at the values of data

So I wanted to plot a graph and only show the x ticks where the data points are, nothing else.
Does anybody know how to achieve this?
Thanks!!