I am plotting a time series with weekly resolution. Minimal example:
\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\usepgfplotslibrary{dateplot}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
width=\linewidth,
height=0.6\linewidth,
axis lines=left,
ymin=0,
ylabel={Price},
date coordinates in=x,
x tick label as interval,
xticklabel={\year}
]
\addplot
[draw=black, mark=none]
table {
2009-01-02 31.42
2009-01-09 29.64
2009-01-16 27.44
2009-01-23 27.92
2009-01-30 28.6
2009-02-06 28.16
2009-02-13 27.65
... more data ...
2014-10-24 36.51
2014-10-31 37.06
2014-11-07 37.61
2014-11-14 39.95
2014-11-21 41.76
2014-11-28 43.38
};
\end{axis}
\end{tikzpicture}
\end{document}
The output looks like this, with more than one of the same year:

I would like a single year in each interval on the x axis, with ticks to mark the boundary between two years, like this:

Any help is greatly appreciated.
