How can we create a table as in the following picture?
Here is what I have done.
\documentclass[10pt,notheorems]{beamer}
\usepackage{tikz}
\usetikzlibrary{babel,decorations.markings,positioning,shapes,arrows}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\hypersetup{bookmarksdepth=4,bookmarksnumbered=true,bookmarksopen=true}
\definecolor{mc1}{rgb}{0.368417,0.506779,0.709798}
\usetheme{Warsaw}
\usecolortheme{seahorse}
\setbeamertemplate{theorems}[numbered]
\setbeamertemplate{caption}[numbered]
\begin{document}
\begin{frame}[fragile]{Table of intervals}{}
\begin{table}
\centering
\begin{tabular}{ccc}
Notation & Set description & Picture \\ \hline
$(a,b)$ & $\{x:\ a<x<b\}$ &
\begin{tikzpicture}
\begin{axis}[
%scaled ticks=false,
axis lines=middle,
%axis line style={draw=none},
width=50mm,
height=20mm,
xmin=0,xmax=4,
ymin=-1,ymax=1,
xtick={1,3},
xticklabels={$a$,$b$},
y axis line style={draw=none},
ytick=\empty,
%yticklabels={}
]
\addplot[very thick,color=mc1,smooth,samples=2,domain=1.1:2.9]{0};
\addplot[thick,color=mc1,fill opacity=0,only marks,mark=*] coordinates{(1,0)};
\addplot[thick,color=mc1,fill opacity=0,only marks,mark=*] coordinates{(3,0)};
\end{axis}
\end{tikzpicture} \\
$[a,b]$ & $\{x:\ a\leq{}x\leq{}b\}$ &
\begin{tikzpicture}
\begin{axis}[
%scaled ticks=false,
axis lines=middle,
%axis line style={draw=none},
width=50mm,
height=20mm,
xmin=0,xmax=4,
ymin=-1,ymax=1,
xtick={1,3},
xticklabels={$a$,$b$},
y axis line style={draw=none},
ytick=\empty,
%yticklabels={}
]
\addplot[very thick,color=mc1,smooth,samples=2,domain=1:3]{0};
\addplot[thick,color=mc1,only marks,mark=*] coordinates{(1,0)};
\addplot[thick,color=mc1,only marks,mark=*] coordinates{(3,0)};
\end{axis}
\end{tikzpicture} \\
$[a,b)$ & $\{x:\ a\leq{}x<b\}$ &
\begin{tikzpicture}
\begin{axis}[
%scaled ticks=false,
axis lines=middle,
%axis line style={draw=none},
width=50mm,
height=20mm,
xmin=0,xmax=4,
ymin=-1,ymax=1,
xtick={1,3},
xticklabels={$a$,$b$},
y axis line style={draw=none},
ytick=\empty,
%yticklabels={}
]
\addplot[very thick,color=mc1,smooth,samples=2,domain=1:2.9]{0};
\addplot[thick,color=mc1,only marks,mark=*] coordinates{(1,0)};
\addplot[thick,color=mc1,fill opacity=0,only marks,mark=*] coordinates{(3,0)};
\end{axis}
\end{tikzpicture} \\
$\vdots$ & $\vdots$ & $\vdots$ \\
$(-\infty,\infty)$ & $\mathbb{R}$ &
\begin{tikzpicture}
\begin{axis}[
%scaled ticks=false,
axis lines=middle,
%axis line style={draw=none},
width=50mm,
height=20mm,
xmin=0,xmax=4,
ymin=-1,ymax=1,
xtick={1,3},
xticklabels={$a$,$b$},
y axis line style={draw=none},
ytick=\empty,
%yticklabels={}
]
\addplot[->,very thick,color=mc1,smooth,samples=2,domain=0:4]{0};
\end{axis}
\end{tikzpicture}
\end{tabular}
\caption{Table of intervals}\label{tbltoi}
\end{table}
\end{frame}
\end{document}
How can I align the pictures properly? I would be very glad to hear suggestions.




tabularwith math mode for the math cells and tikzpicture for the tikz – David Carlisle Sep 01 '17 at 11:58openpoints of intervals\addplot[thick,color=mc1,fill=white,only marks,mark=*]. I'd add left arrow side to axis as well. – Cragfelt Sep 01 '17 at 12:47