Advertisement
Guest User

Untitled

a guest
Aug 28th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. documentclass[12pt,english]{beamer}
  2. usepackage[utf8]{inputenc}
  3. usepackage[T1]{fontenc}
  4. usepackage{tikz,pgfplots}
  5. setbeamertemplate{navigation symbols}{}
  6.  
  7. begin{document}
  8. begin{frame}[plain]
  9. hspace*{-1.5em}begin{tikzpicture}
  10. begin{axis}[
  11. domain=0:10,
  12. axis lines = center,
  13. height=10cm, width=12cm, grid=major,grid style={dashed, gray!30},
  14. xmin=0, xmax=12, ymin=0, ymax=9,xtick={1,2,...,11},ytick={1,2,...,10}]
  15. addplot+[red,only marks,mark=*,mark options={scale=2, fill=red},text mark as node=true] coordinates {
  16. (1,2)
  17. (3,1)
  18. (4,3)
  19. (5,2)
  20. (2,3)
  21. };
  22. addplot+[red,only marks,mark=*,mark options={scale=2, fill=red},text mark as node=true] coordinates {
  23. (7,7)
  24. (8,8)
  25. (9,5)
  26. (11,6)
  27. (10,8)
  28. };
  29.  
  30. draw (axis cs:0,0) -- (axis cs:2,2);
  31. filldraw (axis cs:5,5) circle (3pt);
  32. node[anchor=north] at (axis cs:7,6.9) {1};
  33. node[anchor=south] at (axis cs:5,1) {$f(theta_A, x)$};
  34. end{axis}
  35.  
  36. end{tikzpicture}
  37. end{frame}
  38. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement