Guest User

Untitled

a guest
Jan 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. begin{tikzpicture}[cell/.style={rectangle,draw=black},
  2. space/.style={minimum height=1.5em,matrix of nodes,row sep=-
  3. pgflinewidth,column sep=-pgflinewidth,column 1/.style=
  4. {font=ttfamily}},text depth=0.5ex,text height=2ex,nodes in empty cells]
  5.  
  6. matrix (matrice) [
  7. space,
  8. column 2/.style={minimum width=5em,nodes={cell,minimum width=3.5em}},
  9. column 3/.style={nodes={cell,minimum width=4em}},
  10. column 4/.style={nodes={cell,minimum width=4em}}]
  11. {
  12. $t_1$ &6 & 6 & 7 \
  13. $t_2$ &3 & 3.5 & 8 \
  14. $t_3$ &4 & 9 & 9 \
  15. $t_4$ &7 & 9 & 0 \ };
  16.  
  17. begin{axis}[left= of matrice,
  18. xlabel=time,
  19. ylabel=$f(textrm{temps})$,
  20. xtick distance=1,
  21. legend pos=north west
  22. ,grid=major]
  23. addplot [color=green] table {
  24. Date GDP
  25. 1 6
  26. 2 3
  27. 3 4
  28. 4 7
  29. };
  30. addplot [color=blue] table {
  31. Date X
  32. 1 5
  33. 2 4
  34. 3 5
  35. 4 4
  36. };
  37. addplot [color=red]table {
  38. Date X
  39. 1 5.2
  40. 2 4.2
  41. 3 5.1
  42. 4 4.05
  43. };
  44. addplot [color=purple]table {
  45. Date X
  46. 1 3.2
  47. 2 4.2
  48. 3 5.19
  49. 4 4.05
  50. };
  51. legend{$sensor 1$, $sensor 2$, $sensor2$}
  52. end{axis}
  53. end{tikzpicture}
Add Comment
Please, Sign In to add comment