Guest User

Untitled

a guest
Jul 16th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. documentclass[margin=1cm]{standalone}
  2.  
  3. usepackage{pgfplots}
  4. usetikzlibrary{3d}
  5.  
  6. pgfplotsset{compat=1.14}
  7.  
  8. begin{document}
  9. begin{tikzpicture}
  10.  
  11. begin{axis}[%
  12. enlargelimits=false,
  13. axis equal,
  14. scale only axis,
  15. nodes near coords={pgfmathprintnumberpgfplotspointmeta},
  16. every node near coord/.append style={xshift=0pt,yshift=-7pt, black, font=scriptsize},
  17. ytick=empty,
  18. xtick=empty
  19. ]
  20.  
  21. addplot[
  22. matrix plot*,
  23. point meta=explicit]
  24. table[meta=C]{
  25. x y C
  26. 0 0 0.0
  27. 0 1 0.0
  28. 0 2 0.3
  29.  
  30. 1 0 0.0
  31. 1 1 1.0
  32. 1 2 0.0
  33.  
  34. 2 0 0.0
  35. 2 1 0.0
  36. 2 2 .7
  37. };
  38. end{axis}
  39. end{tikzpicture}
  40. end{document}
Add Comment
Please, Sign In to add comment