I have data that is measured in a seconds scale. If I plot the data using pgfplots, the automatic tick labes are multiples of 100. Because the axis is "time", I would like to be the ticks multiples of 60 (or maybe 120 if too large).
I know, I can manually define this using xtick={0,60,...,420}
, but that requires me to know the size of the data sample. As I have many samples that also may change in the future I would like to do this automatically.
My question is: How do I change the automatic tick distance to a different value?
\documentclass{standalone}
\usepackage{amsmath,tikz,pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[xtick={0,60,...,420}]
\addplot coordinates {
(0,0)
(90,0)
(110,10)
(150,60)
(170,70)
(220,90)
(300,120)
(430,150)
};
\end{axis}
\end{tikzpicture}%
\end{document}