\begin{frame} \begin{tikzpicture}[cell/.style={rectangle,draw=black}, nodes in empty cells] \matrix[ matrix of math nodes, row sep =-\pgflinewidth, column sep = -\pgflinewidth, nodes={anchor=center, minimum width=2cm, cell}, column 1/.style = {nodes={minimum width=1.5cm}}, row 1/.style = {nodes={text height=1.3ex, text depth=0}}, row 2/.style = {text height=1.3ex, text depth=0}, row 3/.style = {text height=1.3ex, text depth=0}, row 4/.style = {text height=1.3ex, text depth=0}, row 5/.style = {text height=1.3ex, text depth=0}, ] (m) { \\ \\ i \mapsto 5 \\ \\ \\ }; \end{tikzpicture} \begin{tikzpicture}[cell/.style={rectangle}, nodes in empty cells] \matrix[ matrix, fill=purple, matrix of math nodes, row sep =-\pgflinewidth, column sep = -\pgflinewidth, nodes={anchor=center, minimum width=2cm, cell}, column 1/.style = {nodes={minimum width=1.5cm}}, row 1/.style = {nodes={text height=1.3ex, text depth=0}}, row 2/.style = {text height=1.3ex, text depth=0}, row 3/.style = {text height=1.3ex, text depth=0}, row 4/.style = {text height=1.3ex, text depth=0}, row 5/.style = {text height=1.3ex, text depth=0}, ] (m) { \\ \\ i \mapsto 5 \\ \\ \\ }; \end{tikzpicture} \end{frame} \end{frame}




