I'm trying to generate a plot using pgfplots, based on a data file that looks as follows:
Code: Select all
1403085611 20905.2942897 93251.9372868
1403085911 19610.7392042 87720.7213289
1403086212 19784.2685653 80539.6569753
...
Code: Select all
\addplot[
color = red,
mark = none
] shell {gawk '/^[0-9]/{print strftime("\%Y-\%m-\%d \%H:\%M:\%S",$1), $2/1000}' data/results.log};
Code: Select all
2014-06-18 12:00:11 20.9053
2014-06-18 12:05:11 19.6107
2014-06-18 12:10:12 19.7843
Code: Select all
\addplot[
color = red,
mark = none
] shell {gawk '/^[0-9]/{print strftime("\%Y-\%m-\%d \%H:\%M:\%S",$1), ",", $2/1000}' data/results.log};
Code: Select all
2014-06-18 12:00:11 , 20.9053
2014-06-18 12:05:11 , 19.6107
2014-06-18 12:10:12 , 19.7843
I know that I could use gnuplot, etc., but my goal is to keep it as simple as possible, only using pgfplots. Any suggestions on how I could get pgfplots to plot my time-series?