I'm trying to add a custom interval to the x-axis. In the image below, this is what I'd like to achieve (from Excel).

enter image description here.

Latex is putting its own interval as seen below:

enter image description here

My graph is defined as follows (I'm leaving out the co-ordinates and labels):

ylabel near ticks,
scale only axis,
x dir=reverse,
\addplot [mark=none] coordinates {

How could I achieve this?

  • 1
    Do you want to actually provide those tick labels or are they the data points? In the latter it's Excel's terribleness at plotting things that makes this possible :)
    – percusse
    Jul 2, 2013 at 17:16
  • Without more info, for example demo data and a response to percusse, we can't really help here.
    – Joseph Wright
    Aug 22, 2013 at 20:56


Browse other questions tagged .