Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. documentclass{standalone}
  2. usepackage{pgfplots}
  3. usepgfplotslibrary{dateplot}
  4. pgfplotsset{compat=newest}
  5. begin{document}
  6. begin{tikzpicture}
  7.  
  8. begin{axis}[
  9. date coordinates in=x,
  10. xticklabel style={rotate=90,anchor=near xticklabel},
  11. xticklabel=year-month-day
  12. ]
  13. addplot table [red] {%
  14. 2016-10-10 50
  15. 2016-10-11 56
  16. };
  17. end{axis}
  18.  
  19. end{tikzpicture}
  20. end{document}
  21.  
  22. documentclass{standalone}
  23. usepackage{pgfplots}
  24. usepgfplotslibrary{dateplot}
  25. pgfplotsset{compat=newest}
  26. begin{document}
  27. begin{tikzpicture}
  28.  
  29. begin{axis}[
  30. date coordinates in=x,
  31. xticklabel style={rotate=90,anchor=near xticklabel},
  32. xticklabel=year-month-day
  33. ]
  34. addplot table [red] {%
  35. 2016-10-10 13:10 50
  36. 2016-10-11 12:55 56
  37. };
  38. end{axis}
  39.  
  40. end{tikzpicture}
  41. end{document}
  42.  
  43. ! Package PGF Math Error: Could not parse input '12:55' as a floating
  44. point number, sorry. The unreadable part was near ':55'..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement