Advertisement
Guest User

Untitled

a guest
Sep 5th, 2015
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. begin{figure}[!h]
  2. centering
  3. caption{Gráfico (c)}
  4. begin{tikzpicture}
  5. begin{axis}[xlabel = Entrada(n),ylabel = Tempo(s), samples at={50,55,60,...,145,150}]
  6.  
  7. addplot[color=red,mark=x]coordinates {
  8. (50, 4.991e+000)
  9. (70, 2.704e+001)
  10. (100, 1.717e+002)
  11. (120, 4.696e+002)
  12. (140, 8.876e+002)
  13. };
  14.  
  15. addplot[blue,thick]{(x)^(5)};
  16.  
  17. legend{Estimado,Modelo}
  18. end{axis}
  19. end{tikzpicture}
  20. end{figure}
  21.  
  22. documentclass{article}
  23. usepackage{pgfplots}
  24. pgfplotsset{compat=1.12}
  25. begin{document}
  26. begin{tikzpicture}
  27. begin{axis}[xlabel = Entrada(n),ylabel = Tempo(s), %samples at={50,55,60,...,145,150}
  28. ]
  29.  
  30. addplot[color=red,mark=x]coordinates {
  31. (50, 4.991e+000)
  32. (70, 2.704e+001)
  33. (100, 1.717e+002)
  34. (120, 4.696e+002)
  35. (140, 8.876e+002)
  36. };
  37.  
  38. addplot[blue,thick,domain=50:140]{(x)^(5)};
  39.  
  40. %legend{Estimado,Modelo}
  41. end{axis}
  42. end{tikzpicture}
  43. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement