extended-euclidean-algorithm-runtime.tex 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. \documentclass[varwidth=true, border=5pt]{article}
  2. \usepackage[active,tightpage]{preview}
  3. \usepackage[latin1]{inputenc}
  4. \usepackage{amsmath}
  5. \usepackage{pgfplots}
  6. \pgfplotsset{compat=1.10}
  7. \usepackage{tikz}
  8. \usetikzlibrary{arrows, positioning}
  9. \usepackage{helvet}
  10. \usepackage[eulergreek]{sansmath}
  11. \begin{document}
  12. \begin{preview}
  13. \pgfplotsset{
  14. colormap={whitered}{
  15. color(0cm)=(white);
  16. color(1cm)=(orange!75!red)
  17. }
  18. }
  19. \begin{tikzpicture}
  20. \begin{axis}[
  21. colormap name=whitered,
  22. clip mode=individual,
  23. width=10.0cm,
  24. height=10.0cm,
  25. % Grid
  26. grid = major,
  27. % size
  28. %xmin= 40, % start the diagram at this x-coordinate
  29. %xmax= 90, % end the diagram at this x-coordinate
  30. %ymin= 0, % start the diagram at this y-coordinate
  31. %ymax= 60, % end the diagram at this y-coordinate
  32. % Legende
  33. legend style={
  34. font=\large\sansmath\sffamily,
  35. at={(0.5,-0.18)},
  36. anchor=north,
  37. legend cell align=left,
  38. legend columns=-1,
  39. column sep=0.5cm
  40. },
  41. % Ticks
  42. tick align=inside,
  43. every axis/.append style={font=\large\sansmath\sffamily},
  44. minor tick style={thick},
  45. scaled y ticks = false,
  46. % Axis
  47. axis line style = {very thick,shorten <=-0.5\pgflinewidth},
  48. axis lines = middle,
  49. axis line style = very thick,
  50. xlabel=$m$,
  51. x label style={at={(axis description cs:0.5,-0.05)},
  52. anchor=north,
  53. font=\boldmath\sansmath\sffamily\Large},
  54. ylabel=$n$,
  55. y label style={at={(axis description cs:-0.1,0.5)},
  56. anchor=south,
  57. rotate=90,
  58. font=\boldmath\sansmath\sffamily\Large},
  59. colorbar,
  60. colorbar style={
  61. at={(-0.2,0)},
  62. anchor=south west,
  63. height=0.25*\pgfkeysvalueof{/pgfplots/parent axis height},
  64. title={Schritte} % ADJUST THIS TO YOUR LANGUAGE
  65. }
  66. ]
  67. \addplot[
  68. scatter,
  69. only marks,
  70. mark=square*
  71. ]
  72. table[col sep=comma,point meta=\thisrow{steps}] {data.csv};
  73. \end{axis}
  74. \end{tikzpicture}
  75. \end{preview}
  76. \end{document}