Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. documentclass[border=5mm]{standalone}
  2. usepackage{pgfplots}
  3. pgfplotsset{compat=newest}
  4.  
  5. begin{filecontents}{data.csv}
  6. Date;Time;Time_Diff;Time_numeric;Temp_1;Temp_2
  7. 16.03.2019;18:48:24;00:00:00;0;30;69
  8. 16.03.2019;18:48:54;00:00:30;0.008;31;68
  9. 16.03.2019;18:49:24;00:01:00;0.017;32;67
  10. 16.03.2019;18:49:54;00:01:30;0.025;33;66
  11. 16.03.2019;18:50:24;00:02:00;0.033;34;65
  12. 16.03.2019;18:50:54;00:02:30;0.042;35;64
  13. 16.03.2019;18:51:24;00:03:00;0.05;36;63
  14. 16.03.2019;18:51:54;00:03:30;0.058;37;62
  15. 16.03.2019;18:52:24;00:04:00;0.067;38;61
  16. 16.03.2019;18:52:54;00:04:30;0.075;39;60
  17. 16.03.2019;18:53:24;00:05:00;0.083;40;59
  18. 16.03.2019;18:53:54;00:05:30;0.092;41;58
  19. 16.03.2019;18:54:24;00:06:00;0.1;42;57
  20. 16.03.2019;18:54:54;00:06:30;0.108;43;56
  21. 16.03.2019;18:55:24;00:07:00;0.117;44;55
  22. 16.03.2019;18:55:54;00:07:30;0.125;45;54
  23. 16.03.2019;18:56:24;00:08:00;0.133;46;53
  24. 16.03.2019;18:56:54;00:08:30;0.142;47;52
  25. 16.03.2019;18:57:24;00:09:00;0.15;48;51
  26. 16.03.2019;18:57:54;00:09:30;0.158;49;50
  27. end{filecontents}
  28.  
  29. begin{document}
  30.  
  31. begin{tikzpicture}
  32. begin{axis}[axis y line* = left,
  33. table/col sep = semicolon]%
  34. addplot table[x=Time_numeric,y=Temp_1]{data.csv};
  35. end{axis}%
  36. %
  37. begin{axis}[axis x line = none,
  38. axis y line* = right,
  39. table/col sep = semicolon]%
  40. addplot table[x=Time_numeric,y=Temp_2]{data.csv};
  41. end{axis}%
  42. end{tikzpicture}
  43. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement