Latex course for IAS IEEE branch
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
680 B

  1. \documentclass{article}
  2. \usepackage{pgfplots}
  3. \pgfplotsset{width=7cm,compat=1.5.1}
  4. \begin{document}
  5. \begin{tikzpicture}
  6. \begin{axis}[scatter/classes={
  7. a={mark=square*,blue},%
  8. b={mark=triangle*,red},%
  9. c={mark=o,draw=black}}]
  10. % \addplot[] is better than \addplot+[] here:
  11. % it avoids scalings of the cycle list
  12. \addplot[scatter,only marks,
  13. scatter src=explicit symbolic]
  14. coordinates {
  15. (0.1,0.15) [a]
  16. (0.45,0.27) [c]
  17. (0.02,0.17) [a]
  18. (0.06,0.1) [a]
  19. (0.9,0.5) [b]
  20. (0.5,0.3) [c]
  21. (0.85,0.52) [b]
  22. (0.12,0.05) [a]
  23. (0.73,0.45) [b]
  24. (0.53,0.25) [c]
  25. (0.76,0.5) [b]
  26. (0.55,0.32) [c]
  27. };
  28. \end{axis}
  29. \end{tikzpicture}
  30. \end{document}