SHARE
TWEET

Untitled

a guest Jun 26th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass{standalone}
  2. usepackage{pgfplots}
  3. pgfplotsset{compat=1.15}
  4.  
  5. pgfplotstableread{
  6. x y z
  7. 5 5 1
  8. 6 6 2
  9. 7 7 3
  10. 8 8 4
  11. }mytable
  12.  
  13. begin{document}
  14.  
  15. begin{tikzpicture}
  16. begin{axis}[
  17.     colorbar,
  18.     colorbar style={ytick={1,2,3,4},ylabel={z}},
  19.     legend style={at={(current bounding box.north)},anchor={south}}
  20. ]
  21.  
  22. addplot [scatter,scatter src=thisrow{z},only marks,mark=*] table {mytable};
  23.  
  24. legend{loooooooooooooooooooooooooong entry}
  25.  
  26. end{axis}
  27. end{tikzpicture}
  28.  
  29. end{document}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top