tikz beamer add tag
topnush
I have this MWE:

```
\documentclass{beamer}
\usepackage{tikz}

\begin{document}


\begin{frame}
\tikzstyle{vertex}=[very thick,draw=black, circle,minimum size=18pt,inner sep=0pt]
\tikzstyle{edge} = [draw,very thick,-]

\begin{figure}
\begin{tikzpicture}[scale=1.8, auto,swap]
    % First we draw the vertices
    \foreach \pos/\name in {{(0,2)/s}, {(2,1)/b}, {(4,1)/c},
                            {(0,0)/d}, {(3,0)/e}, {(2,-1)/f}, {(4,-1)/t}}
        \node[vertex] (\name) at \pos {$\name$};
    % Connect vertices with edges and draw weights
    \foreach \source/ \dest / \myoverlay  in {
      b/s/2-6, 
      c/b/3-,
      f/e/4-8,
      e/t/5-,
      f/d/6-, 
      %e/c/7,
      s/c/8-,
%      f/d/9,
      d/b/10-,
      e/c/11-,
      e/f/12
    }{
        \path<\myoverlay>[edge] (\source) -- node {} (\dest);
    }

\node<1>[anchor=west] at (0.05, 3) {\Large Edges arrive and disappear online};
\node<2-6,8,10>[anchor=west] at (0, 2.7) {\Large Add edge};
\node<11->[anchor=west] at (0, 2.7) {\Large Add edge. $s$ is connected to $t$.};
\node<7,9>[anchor=west] at (0, 2.7) {\Large Delete edge};


\end{tikzpicture}
\end{figure}
\end{frame}
\end{document}
```

The problem is that when "Add edge" is shown, the graph below it moves. I don't know how to do the equivalent of `uncover` in TikZ.
Top Answer
samcarter
The image moved because you placed the `Edges arrive...` node at a different height than the other nodes. If you use the same coordinates, it does not move:

```
\documentclass{beamer}
\usepackage{tikz}

\tikzset{
  vertex/.style={very thick,draw=black, circle,minimum size=18pt,inner sep=0pt},
  edge/.style={draw,very thick,-}
}

\begin{document}


\begin{frame}
\begin{figure}
\begin{tikzpicture}[scale=1.8, auto,swap]
    % First we draw the vertices
    \foreach \pos/\name in {{(0,2)/s}, {(2,1)/b}, {(4,1)/c},
                            {(0,0)/d}, {(3,0)/e}, {(2,-1)/f}, {(4,-1)/t}}
        \node[vertex] (\name) at \pos {$\name$};
    % Connect vertices with edges and draw weights
    \foreach \source/ \dest / \myoverlay  in {
      b/s/2-6, 
      c/b/3-,
      f/e/4-8,
      e/t/5-,
      f/d/6-, 
      %e/c/7,
      s/c/8-,
%      f/d/9,
      d/b/10-,
      e/c/11-,
      e/f/12
    }{
        \path<\myoverlay>[edge] (\source) -- node {} (\dest);
    }
\node<1>[anchor=west] at (0, 2.7) {\Large Edges arrive and disappear online};
\node<2-6,8,10>[anchor=west] at (0, 2.7) {\Large Add edge};
\node<11->[anchor=west] at (0, 2.7) {\Large Add edge. $s$ is connected to $t$.};
\node<7,9>[anchor=west] at (0, 2.7) {\Large Delete edge};
\end{tikzpicture}
\end{figure}
\end{frame}
\end{document}
```

![document.gif](/image?hash=cc5f2ef46e75cab889827e3c53ecf356ab4736edaceb2a659133e6bcc063a98a)

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.