Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass[12pt,english]{beamer}
- usepackage[utf8]{inputenc}
- usepackage[T1]{fontenc}
- usepackage{tikz,pgfplots}
- setbeamertemplate{navigation symbols}{}
- begin{document}
- begin{frame}[plain]
- hspace*{-1.5em}begin{tikzpicture}
- begin{axis}[
- domain=0:10,
- axis lines = center,
- height=10cm, width=12cm, grid=major,grid style={dashed, gray!30},
- xmin=0, xmax=12, ymin=0, ymax=9,xtick={1,2,...,11},ytick={1,2,...,10}]
- addplot+[red,only marks,mark=*,mark options={scale=2, fill=red},text mark as node=true] coordinates {
- (1,2)
- (3,1)
- (4,3)
- (5,2)
- (2,3)
- };
- addplot+[red,only marks,mark=*,mark options={scale=2, fill=red},text mark as node=true] coordinates {
- (7,7)
- (8,8)
- (9,5)
- (11,6)
- (10,8)
- };
- draw (axis cs:0,0) -- (axis cs:2,2);
- filldraw (axis cs:5,5) circle (3pt);
- node[anchor=north] at (axis cs:7,6.9) {1};
- node[anchor=south] at (axis cs:5,1) {$f(theta_A, x)$};
- end{axis}
- end{tikzpicture}
- end{frame}
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement