I want to reverse to direction of the x axis in one of my plots. pgfplots
offers the x dir=reverse
key for this. However, this does not work as expected - not even in this example:
\documentclass{standalone}
\usepackage{tikz,pgfplots}
\pgfplotsset{compat=1.3}
\begin{document}
\begin{tikzpicture}
\begin{axis}[xmin=0,xmax=1,x=15cm,
ymin=0,ymax=1,y=10cm,
x dir=reverse]
\addplot coordinates{(0,0) (1,1)};
\end{axis}
\end{tikzpicture}
\end{document}
In the compiled pdf, the plot starts with (0,0) at the left side, just like it would without the x dir=reverse
option.
I have pgfplots
1.5 installed.
What's wrong here?
x=15cm
.