I've created a graph with pgfplots. Now I would like to mirror the abscissa so that the highest number would be on the left, and the smallest number on the right.
Code: Select all
\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{semilogxaxis}[
grid=both,
enlarge x limits=false,
scale only axis,
width=10cm,
height=6cm,
ymin=0,
ymax=1500,
tick style={draw=none},
xlabel=Exceedance frequency {[1/year]},
ylabel=Waterlevel with repect to NAP {[cm]}
]
\addplot[color=red,mark=x] coordinates {
(1/1250,1430)
(1/100,1340)
(1/10,1255)
(1/2,1155)
(1,1100)
(2,765)
};
\end{semilogxaxis}
\end{tikzpicture}
\end{document}