Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{tikz,pgfplots}
  3. usepgfplotslibrary{dateplot}
  4. begin{document}
  5. begin{tikzpicture}
  6. begin{axis}[compat=1.5.1,
  7. date coordinates in=x,
  8. xticklabel={hour:minute},
  9. xticklabel style= {rotate=45,anchor=north east},
  10. xtick={
  11. {2010-06-22 9:00},
  12. {2010-06-22 12:00},
  13. {2010-06-22 15:00},
  14. {2010-06-22 18:00},
  15. {2010-06-22 21:00},
  16. {2010-06-23 00:00},
  17. {2010-06-23 03:00},
  18. {2010-06-23 06:00},
  19. {2010-06-23 09:00}
  20. },
  21. date ZERO=2010-06-22,
  22. xlabel=Date and time,
  23. xlabel shift=20pt,
  24. ylabel=Random stuff,
  25. xmin={2010-06-22 9:00},
  26. xmax ={2010-06-23 07:25},
  27. minor x tick num = 2,
  28. clip=false
  29. ]
  30. addplot coordinates {
  31. (2010-06-22 09:06:03,0.1)
  32. (2010-06-22 16:14:07,0.8)
  33. (2010-06-23 07:00:25,1)
  34. };
  35. node[anchor=north] at (xticklabel cs:0.1) {22.06.2010};
  36. node[anchor=north] at (xticklabel cs:0.75) {22.06.2010};
  37. end{axis}
  38. end{tikzpicture}
  39. end{document}
  40.  
  41. xlabel shift=10pt,
  42. extra x ticks={2010-06-22 9:00,2010-06-23},
  43. extra x tick style={
  44. xticklabel=day.month.year,
  45. every x tick label/.style={anchor=north west,yshift=-35pt},
  46. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement