Advertisement
Guest User

Untitled

a guest
Aug 26th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{tikz,pgfplots}
  3.  
  4. begin{document}
  5. pgfplotsset{width=15cm,height=10cm}
  6. begin{tikzpicture}
  7. begin{axis}[colorbar sampled,colorbar style={samples=13}, grid=both, scale only axis=true,
  8. width=10cm, height=15cm,xtick={0,1,...,10},ytick={0,1,...,10},xmin=0,ymin=0,ymax=10,xmax=10]
  9. addplot[
  10. scatter,mark=text, text mark={rule{14mm}{5mm}},only marks,
  11. point meta=thisrow{myvalue}
  12. ]
  13. table {
  14. x y color myvalue
  15. 2 3 1 100
  16. 4 3 2 3
  17. 2 7 3 0.75
  18. 7 7 4 45
  19. 8 5 2 3
  20. };
  21. end{axis}
  22. end{tikzpicture}
  23.  
  24. end{document}
  25.  
  26.  
  27. %colorbar horizontal
  28. %colormap/bluered,colorbar
  29. %%colorbar horizontal
  30. %colorbar/width=2cm,
  31. %colorbar sampled,colorbar style={samples=8}]
  32. %colorbar sampled line]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement