courbeTemps.tex 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. \documentclass{article}
  2. \usepackage{tikz}
  3. \usepackage{pgfplots}
  4. \begin{document}
  5. \definecolor{mygreen}{HTML}{129d1c}
  6. \pgfplotsset{scaled y ticks=false,scaled x ticks=false}
  7. \begin{tikzpicture}
  8. \begin{axis}[
  9. xlabel=$Nombre\ de\ sources$,%0 -> 250 000
  10. ylabel=$Temps\ moyen\ (en\ ms)$, %0 -> 1 600 000
  11. ylabel style={xshift=-5pt,yshift=12pt},
  12. legend cell align=left,
  13. legend style={draw=none,legend pos=north west,font=\small},
  14. xticklabel style={/pgf/number format/fixed},
  15. yticklabel style={/pgf/number format/fixed},
  16. /pgf/number format/1000 sep={\ }]
  17. \addplot[color=mygreen,mark=+] plot coordinates {
  18. % (4, )
  19. (20, 16.7)
  20. (200, 66)
  21. (1000, 208.6)
  22. (2000, 359.6)
  23. (4000, 833.4)
  24. (6000, 1470)
  25. (8000, 2409.4)
  26. (10000, 3610.2)
  27. (20000, 13436.8)
  28. (40000, 52300.5)
  29. (100000, 322164.1)
  30. (200000, 1250304.9)
  31. };
  32. \addlegendentry{Temps moyen phase \#1}
  33. \addplot[color=blue,mark=+] plot coordinates {
  34. % (4, )
  35. (20, 0.5)
  36. (200, 6.8)
  37. (1000, 28.7)
  38. (2000, 54)
  39. (4000, 142.7)
  40. (6000, 223.8)
  41. (8000, 342.4)
  42. (10000, 491.4)
  43. (20000, 1760)
  44. (40000, 6781.2)
  45. (100000, 41708.1)
  46. (200000, 166934.2)
  47. };
  48. \addlegendentry{Temps moyen phase \#2}
  49. \addplot[color=red,mark=+] plot coordinates {
  50. % (4, )
  51. (20, 17.2)
  52. (200, 72.8)
  53. (1000, 237.3)
  54. (2000, 413.6)
  55. (4000, 976.1)
  56. (6000, 1693.8)
  57. (8000, 2751.8)
  58. (10000, 4101.6)
  59. (20000, 15196.8)
  60. (40000, 59081.7)
  61. (100000, 363872.2)
  62. (200000, 1417239.1)
  63. };
  64. \addlegendentry{Temps moyen total}
  65. %\legend{$d=2$\\$d=3$\\$d=4$\\$d=5$\\$d=6$\\}
  66. \end{axis}
  67. \end{tikzpicture}
  68. \end{document}