csv-bivariate-normal-distribution.tex 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. \documentclass[varwidth=true, border=2pt]{standalone}
  2. \usepackage[utf8]{inputenc} % this is needed for umlauts
  3. \usepackage[ngerman]{babel} % this is needed for umlauts
  4. \usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
  5. \usepackage[margin=2.5cm]{geometry} %layout
  6. \usepackage{pgfplots}
  7. \pgfplotsset{compat=newest}
  8. \usetikzlibrary{plotmarks}
  9. \begin{document}
  10. \tikzset{mark options={line width=0.5pt}}
  11. \begin{tikzpicture}
  12. \begin{axis}[
  13. width=7.5cm, height=15cm, % size of the image
  14. enlarge x limits=0.05,
  15. enlarge y limits=0.05,
  16. xmin = -5,
  17. xmax = 5,
  18. ymin = -10,
  19. ymax = 10,
  20. % xlabel=x,
  21. % ylabel=y
  22. ]
  23. \addplot[scatter,
  24. only marks,
  25. mark=*,
  26. mark size = 1,
  27. point meta=1,
  28. ]
  29. table [x=x, y=y, col sep=comma] {data.csv};
  30. \end{axis}
  31. \end{tikzpicture}
  32. \end{document}