Datum in X-Achse, Pgfplot
Verfasst: Mo 16. Apr 2012, 18:24
Hallo,
ich habe ein Problem bei dem ich nicht weiterkomme -.-
Wie bekomme ich es hin, dass auf der X-Achse pro eingegebenem Wert ein Datum steht (also statt 1 bis 15, 1.04. bis 15.04.)?
Hoffentlich könnt ihr mir helfen!
Viele Grüße Gerrit
ich habe ein Problem bei dem ich nicht weiterkomme -.-
Wie bekomme ich es hin, dass auf der X-Achse pro eingegebenem Wert ein Datum steht (also statt 1 bis 15, 1.04. bis 15.04.)?
Hoffentlich könnt ihr mir helfen!
Viele Grüße Gerrit
\documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[german]{babel} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{pgfplots} \pgfplotsset{compat=1.5.1} \begin{document} \begin{tikzpicture} \begin{axis} \addplot coordinates{ (1.04,5) (2.04,6) (3.04,8) (4.04,4.5) (5.04,9) (6.04,8) (7.04,12) (8.04,12) (9.04,11) (10.04,12) (11.04,10) (12.04,9.5) (13.04,11) (14.04,10) (15.04,13) (16.04,8.5) }; \addlegendentry{min} \addplot coordinates{ (1,12.5) (2,18.5) (3,14) (4,19.5) (5,17) (6,25.5) (7,25) (8,26) (9,22) (10,24) (11,22) (12,29) (13,20) (14,16.5) (15,19) }; \addlegendentry{max} \end{axis} \end{tikzpicture} \end{document}