Advertisement
Guest User

Untitled

a guest
Mar 28th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. documentclass{minimal}
  2. usepackage{pgfplotstable,pgfplots}
  3. pgfplotsset{compat=newest}
  4.  
  5. pgfplotstableread{
  6. 1 1 440 440
  7. 2 2 407 424
  8. 3 3 395 426
  9. 4 4 382 427
  10. 5 5 375 427
  11. 6 6 366 427
  12. 1 7 391 423
  13. 2 8 378 395
  14. 3 9 376 396
  15. 4 10 366 396
  16. 5 11 357 396
  17. 1 12 339 389
  18. 2 13 333 372
  19. 3 14 317 372
  20. 4 15 298 372
  21. 5 16 279 372
  22. 1 17 253 368
  23. 2 18 248 352
  24. 3 19 236 351
  25. 4 20 167 351
  26. 5 21 166 351
  27. 1 22 158 347
  28. 2 23 120 319
  29. 3 24 115 319
  30. 4 25 109 319
  31. 5 26 108 319
  32. 1 27 105 314
  33. 2 28 115 293
  34. 3 29 108 293
  35. 4 30 108 292
  36. 5 31 103 293
  37. 1 32 102 289
  38. 2 33 108 268
  39. 3 34 100 268
  40. 4 35 98 270
  41. 5 36 99 269
  42. 1 37 94 266
  43. 2 38 102 250
  44. 3 39 92 250
  45. 4 40 95 251
  46. 5 41 93 251
  47. 1 42 91 249
  48. 2 43 96 236
  49. 3 44 93 237
  50. 4 45 89 238
  51. 5 46 85 241
  52. 1 47 85 237
  53. 2 48 93 233
  54. 3 49 85 232
  55. 4 50 87 232
  56. 5 51 84 232
  57. 1 52 85 232
  58. }data
  59.  
  60. begin{document}
  61. begin{tikzpicture}
  62. begin{axis}[xmin=1, xmax=52,
  63. ymin=0, ymax=450,
  64. xtick={1,7,12,17,22,...,52},
  65. minor x tick num=2,
  66. xticklabels={1,2,...,10},
  67. x tick label as interval,
  68. xmajorgrids,
  69. axis x line*=top,
  70. hide y axis,
  71. xlabel={Timestep}
  72. ]
  73. end{axis}
  74. %
  75. begin{axis}[xmin=1, xmax=52,
  76. ymin=0, ymax=450,
  77. axis x line*=bottom,
  78. xtick={1,6,11,16,21,...,52},
  79. minor x tick num=4,
  80. xticklabels= {1,6,5,5,5,5,5,5,5,5,5},
  81. xlabel={Newton-Iterations},
  82. ylabel={GMRes-Iterations},
  83. ]
  84. addplot[mark=none, red] table [x index=1,y index=2]
  85. {data};
  86. addplot[mark=none, blue] table [x index=1,y index=3]
  87. {data};
  88. end{axis}
  89. end{tikzpicture}
  90. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement