Guest User

Untitled

a guest
Jan 11th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. documentclass[border=10pt]{standalone}
  2. usepackage{pgfplots}
  3. usepackage{filecontents}
  4. begin{filecontents}{map.txt}
  5. 0.1 0 2.933100901655603E-6
  6. 0.1 10 1.2378929491530841E-5
  7. 0.1 20 2.0588051604902755E-5
  8. 0.1 30 2.7190941686966532E-5
  9. 0.1 40 3.290721897852047E-5
  10. 0.1 60 4.250275971734089E-5
  11. 0.1 80 5.0350197981567186E-5
  12. 0.1 100 5.681643648591518E-5
  13. 0.1 150 6.859558257512272E-5
  14. 0.1 200 7.652271637806553E-5
  15. 0.1 250 8.22752949739641E-5
  16. 0.1 300 8.668070617985642E-5
  17.  
  18. 0.2 0 1.362157048411715E-5
  19. 0.2 10 1.4186557576426701E-5
  20. 0.2 20 1.9510106350903664E-5
  21. 0.2 30 2.3880991840192088E-5
  22. 0.2 40 2.7472817836855655E-5
  23. 0.2 60 3.282892845070262E-5
  24. 0.2 80 3.656164586607819E-5
  25. 0.2 100 3.944614546159667E-5
  26. 0.2 150 4.434691145348564E-5
  27. 0.2 200 4.730750444203243E-5
  28. 0.2 250 4.9180711846180925E-5
  29. 0.2 300 5.0512424521156164E-5
  30. end{filecontents}
  31.  
  32. pgfplotsset{compat=newest}
  33.  
  34. begin{document}
  35. begin{tikzpicture}
  36. begin{axis}[
  37. colormap/jet,
  38. colorbar,
  39. colorbar style={yticklabel=$10^{pgfmathprintnumber{tick}}$},
  40. view={0}{90},
  41. zmode=log]
  42. addplot3[surf,shader=interp] table[x index=0,y index=1,z index=2] {map.txt};
  43. end{axis}
  44. end{tikzpicture}
  45. end{document}
  46.  
  47. % used PGFPlots v1.15
  48. begin{filecontents}{map.txt}
  49. 0.1 0 2.933100901655603E-6
  50. 0.1 10 1.2378929491530841E-5
  51. 0.1 20 2.0588051604902755E-5
  52. 0.1 30 2.7190941686966532E-5
  53. 0.1 40 3.290721897852047E-5
  54. 0.1 60 4.250275971734089E-5
  55. 0.1 80 5.0350197981567186E-5
  56. 0.1 100 5.681643648591518E-5
  57. 0.1 150 6.859558257512272E-5
  58. 0.1 200 7.652271637806553E-5
  59. 0.1 250 8.22752949739641E-5
  60. 0.1 300 8.668070617985642E-5
  61.  
  62. 0.2 0 1.362157048411715E-5
  63. 0.2 10 1.4186557576426701E-5
  64. 0.2 20 1.9510106350903664E-5
  65. 0.2 30 2.3880991840192088E-5
  66. 0.2 40 2.7472817836855655E-5
  67. 0.2 60 3.282892845070262E-5
  68. 0.2 80 3.656164586607819E-5
  69. 0.2 100 3.944614546159667E-5
  70. 0.2 150 4.434691145348564E-5
  71. 0.2 200 4.730750444203243E-5
  72. 0.2 250 4.9180711846180925E-5
  73. 0.2 300 5.0512424521156164E-5
  74. end{filecontents}
  75. documentclass[border=5pt]{standalone}
  76. usepackage{pgfplots}
  77. pgfplotsset{compat=1.15}
  78. begin{document}
  79. begin{tikzpicture}
  80. begin{axis}[
  81. view={0}{90},
  82. colormap/jet,
  83. colorbar,
  84. % colorbar style={yticklabel=$10^{pgfmathprintnumber{tick}}$},
  85. % zmode=log,
  86. ]
  87. addplot3[surf,shader=interp] table[x index=0,y index=1,z index=2] {map.txt};
  88. end{axis}
  89. end{tikzpicture}
  90. end{document}
Add Comment
Please, Sign In to add comment