ich versuche gerade eine Datenfile für einen plot einzulesen. Bis dato hatte ich es leider noch nicht mit Datums- bzw. Zeitangaben bzw. deren Kombinationen für die Skalierung der x-Achse zu tun. Mein Ansatz, siehe folgendem Minimalbeispiel funktioniert leider noch nicht.
\documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \usepackage{verbatim} \usepgfplotslibrary{dateplot} \pgfplotsset{compat=1.3, axis line style={ultra thin}, tick style={ultra thin,black}, major tick length={0.1cm}, minor tick length={0.06cm}, xlabel near ticks, ylabel near ticks} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{document} \thispagestyle {empty} \begin{tikzpicture} \begin{axis}[ date coordinates in=x, xticklabel={\day.\month.\year}, yticklabel={\theta [${}^\circ$C]}, x tick label style={align=center}, xmin={01.01.2008 00:00}, xmax={31.12.2008 23:55}, ] \addplot file[col sep=tab,x=date,y=temperature]{test.txt} \end{axis} \end{tikzpicture} \end{document}
Hab schon ein paar Sachen durchprobiert, allerdings bekomme ich ständig die Fehlermeldung:
Runaway argument?
\pgfplots@calender@ZEROSHIFT \relax \ifx \pgfplotstemptime \pgfutil@empty \ETC.
! Paragraph ended before \pgfcalendar@datetojulian was complete.
<to be read again>
\par
Das Test-File hat folgendes Format:
date temperature 01.01.2008 00:00 7 01.01.2008 00:05 7 01.01.2008 00:10 6,8 01.01.2008 00:15 7,3 01.01.2008 00:20 8,1 01.01.2008 00:25 8,1 01.01.2008 00:30 8 01.01.2008 00:35 7,3 01.01.2008 00:40 6,7 01.01.2008 00:45 6,6 01.01.2008 00:50 6,5 01.01.2008 00:55 6,4 01.01.2008 01:00 8,1
Kann jemand helfen oder sagen woran es liegt? Ist das vorliegende Format für Datum und Zeit grundsätzlich nicht zum Einlesen in pgf geeignet?
Danke!
hans