courbeTemps.tex 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. \definecolor{mygreen}{HTML}{129d1c}
  2. \pgfplotsset{scaled y ticks=false,scaled x ticks=false}
  3. \begin{tikzpicture}
  4. \begin{axis}[
  5. xlabel=$Nombre\ de\ sources$,%0 -> 250 000
  6. ylabel=$Temps\ moyen\ (en\ ms)$, %0 -> 1 600 000
  7. %ylabel style={xshift=-5pt,yshift=15pt},
  8. ylabel style={yshift=20pt},
  9. legend cell align=left,
  10. legend style={draw=none,legend pos=north west,font=\small},
  11. xticklabel style={/pgf/number format/fixed},
  12. yticklabel style={/pgf/number format/fixed},
  13. % ytick={aaa,1000000,1500000},
  14. /pgf/number format/1000 sep={\ }]
  15. \addplot[color=mygreen,mark=+] plot coordinates {
  16. % (4, )
  17. (20, 16.7)
  18. (200, 66)
  19. (1000, 208.6)
  20. (2000, 359.6)
  21. (4000, 833.4)
  22. (6000, 1470)
  23. (8000, 2409.4)
  24. (10000, 3610.2)
  25. (20000, 13436.8)
  26. (40000, 52300.5)
  27. (100000, 322164.1)
  28. (200000, 1250304.9)
  29. % (2000000, 131216793.1)
  30. } ;
  31. %} node[pos=0.8,pin={$P_1$},xshift=0.5cm,yshift=-0.5cm] {} ;
  32. %} node[pos=0.1,pin=135:{\color{purple}$A$}] {} ;
  33. %node[pos=0.54](endofplotsquare){} ;
  34. %\node [right, color=mygreen] at (endofplotsquare) {A};
  35. %\node at (200000,300000) {\color{mygreen}$P_1$};
  36. \node at (210,125) {\color{mygreen}$P_1$};
  37. \addlegendentry{({\color{mygreen}$P_1$}) Temps moyen phase \#1}
  38. \addplot[color=blue,mark=+] plot coordinates {
  39. % (4, )
  40. (20, 0.5)
  41. (200, 6.8)
  42. (1000, 28.7)
  43. (2000, 54)
  44. (4000, 142.7)
  45. (6000, 223.8)
  46. (8000, 342.4)
  47. (10000, 491.4)
  48. (20000, 1760)
  49. (40000, 6781.2)
  50. (100000, 41708.1)
  51. (200000, 166934.2)
  52. % (2000000, 2338520.8)
  53. } ;
  54. %} node[pos=1,pin={$P_2$}] {} ;
  55. \node at (210,17) {\color{blue}$P_2$};
  56. %\node[pin=Toto $P_2$] at (axis cs:200000,300000) {};
  57. \addlegendentry{({\color{blue}$P_2$}) Temps moyen phase \#2}
  58. \addplot[color=red,mark=+] plot coordinates {
  59. % (4, )
  60. (20, 17.2)
  61. (200, 72.8)
  62. (1000, 237.3)
  63. (2000, 413.6)
  64. (4000, 976.1)
  65. (6000, 1693.8)
  66. (8000, 2751.8)
  67. (10000, 4101.6)
  68. (20000, 15196.8)
  69. (40000, 59081.7)
  70. (100000, 363872.2)
  71. (200000, 1417239.1)
  72. % (2000000, 154602033.9)
  73. } ;
  74. %} node[pos=0.9,pin={$T$}] {} ;
  75. \node at (210,142) {\color{myred}$T$};
  76. \addlegendentry{({\color{myred}$T$})~ Temps moyen total}
  77. %\legend{$d=2$\\$d=3$\\$d=4$\\$d=5$\\$d=6$\\}
  78. \end{axis}
  79. \end{tikzpicture}