Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. plot 'heat-data.txt' matrix with image;
  2.  
  3. 6 5 4 3 1 0
  4. 3 2 2 0 0 1
  5. 0 0 0 0 1 0
  6. 0 0 0 0 2 3
  7. 0 0 1 1 1 0
  8. 0 1 0 1 1 0
  9.  
  10. addplot3[raw gnuplot]
  11. gnuplot{
  12. set view map;
  13. plot 'heat-data.txt' matrix with image};
  14.  
  15. addplot3[raw gnuplot,surf,shader=flat]gnuplot{
  16. plot 'heat-data.txt' matrix with image;
  17. };
  18.  
  19. documentclass[tikz, crop]{standalone}
  20. usepackage{tikz}
  21. usepackage{pgfplots}
  22. pgfplotsset{compat=newest}
  23. pgfplotsset{plot coordinates/math parser=false}
  24. begin{document}
  25.  
  26. begin{tikzpicture}
  27.  
  28. begin{axis}[
  29. colorbar right,
  30. colormap/viridis,
  31. view={0}{90}
  32. ]
  33.  
  34. %addplot3[raw gnuplot]gnuplot{
  35. %plot 'heat-data.txt' matrix with image;
  36. %};
  37.  
  38. addplot3[raw gnuplot,surf,shader=flat]gnuplot{
  39. plot 'heat-data.txt' matrix with image;
  40. };
  41.  
  42. end{axis}
  43. end{tikzpicture}
  44. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement