Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. documentclass{standalone}
  2. usepackage{pgfplots}
  3. usepackage{filecontents}
  4. usepgfplotslibrary{dateplot}
  5.  
  6. begin{filecontents}{data.csv}
  7. Date; Value
  8. 2019-04-01 12:00:00; 1
  9. 2019-04-02 12:00:00; 2
  10. 2019-04-03 12:00:00; 3
  11. 2019-04-04 12:00:00; 4
  12. 2019-04-05 12:00:00; 5
  13. end{filecontents}
  14.  
  15. begin{document}
  16. begin{tikzpicture}
  17. begin{axis}[date coordinates in = x,
  18. xticklabel = month/day,
  19. table/col sep = semicolon]
  20. addplot table[x=Date,y=Value]{data.csv};
  21. end{axis}
  22. end{tikzpicture}%
  23. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement