Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass{standalone}
- usepackage{pgfplots}
- usepackage{filecontents}
- usepgfplotslibrary{dateplot}
- begin{filecontents}{data.csv}
- Date; Value
- 2019-04-01 12:00:00; 1
- 2019-04-02 12:00:00; 2
- 2019-04-03 12:00:00; 3
- 2019-04-04 12:00:00; 4
- 2019-04-05 12:00:00; 5
- end{filecontents}
- begin{document}
- begin{tikzpicture}
- begin{axis}[date coordinates in = x,
- xticklabel = month/day,
- table/col sep = semicolon]
- addplot table[x=Date,y=Value]{data.csv};
- end{axis}
- end{tikzpicture}%
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement