Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass[margin=1cm]{standalone}
- usepackage{pgfplots}
- usetikzlibrary{3d}
- pgfplotsset{compat=1.14}
- begin{document}
- begin{tikzpicture}
- begin{axis}[%
- enlargelimits=false,
- axis equal,
- scale only axis,
- nodes near coords={pgfmathprintnumberpgfplotspointmeta},
- every node near coord/.append style={xshift=0pt,yshift=-7pt, black, font=scriptsize},
- ytick=empty,
- xtick=empty
- ]
- addplot[
- matrix plot*,
- point meta=explicit]
- table[meta=C]{
- x y C
- 0 0 0.0
- 0 1 0.0
- 0 2 0.3
- 1 0 0.0
- 1 1 1.0
- 1 2 0.0
- 2 0 0.0
- 2 1 0.0
- 2 2 .7
- };
- end{axis}
- end{tikzpicture}
- end{document}
Add Comment
Please, Sign In to add comment