I am using Tikz to create a flow chart for a Beamer presentation. I managed to get Beamer to uncover each item in the flowshart one by one, but I would like to be able to show one node and then hide it. Is there any way to do this?
Here's my code:
\begin{frame}{The Detection Method}
\tikzstyle{LargeBlock} = [rectangle, draw, fill=blue!20, text width=10em, text badly centered, rounded corners]
\tikzstyle{decision} = [diamond, draw, fill=red!20, text badly centered,text width=1.2cm]
\tikzstyle{block} = [rectangle, draw, fill=blue!20, text width=5em, text badly centered, rounded corners, minimum height=1em]
\tikzstyle{ImgBlock} = [rectangle, draw]
\tikzstyle{line} = [draw, -latex']
\tikzstyle{cloud} = [draw, ellipse,fill=red!20, minimum height=1em]
\tikzstyle{EmptyAnchor} = [ellipse,minimum height=1em]
\begin{tikzpicture}[node distance = 1cm, auto]
\pause{}
% Step 1
\node [LargeBlock, anchor=north] (init) {Simulated Planet + Star CCFs};\pause{}
% Step 2
\node [decision, right=1 cm of init] (build) {$\sum CCFs$};
\path [line] (init) -- (build); \pause{}
% Step 3
\node [block, below=0.5 cm of build] (template) {Star Template};
\path [line] (build) -- (template); \pause{}
% Step 4
\node [decision, below=0.5 cm of init] (normalise) {$\frac{CCFs}{Template}$};
\path [line] (init) -- (normalise);
\path [line] (template) -- (normalise); \pause{}
% Step
\node [EmptyAnchor, below=1.5 cm of normalise] (empty0) {};
\node [EmptyAnchor, right=2.5 cm of empty0] (empty3) {};
\node [ImgBlock, right=5 cm of empty0] (img1) {{\pgftext{\includegraphics[width=4.5cm,page=6]{./figures/Jupiter_3days_EELT.pdf}}}};
\path [line,dashed] (normalise) |- (empty3); \pause{}
% Step 5
\path [line] (init) -- (build);
\node [LargeBlock, below=0.5 cm of normalise] (NormCCFs) {Normalized CCFs};
\path [line] (normalise) -- (NormCCFs); \pause{}
% Step 6
\node [decision, below=0.5 cm of NormCCFs] (stack) {$stack$ $CCFs$};
\node [EmptyAnchor, below=0.5 cm of NormCCFs] (empty1) {};
\path [line] (NormCCFs) -- node[color=red]{Correct Planet RV} (stack); \pause{}
% Step 7
\node [EmptyAnchor, right=2 cm of stack] (empty2) {};
\node [ImgBlock, right=5 cm of empty1] (stop) {{\pgftext{\includegraphics[width=4.5cm,page=8]{./figures/Jupiter_3days_EELT.pdf}}}};
\path [line,dashed] (stack) -- (empty2);
\end{tikzpicture}
\end{frame}
I want node (img1) to appear and then vanish when node (NormCCFs) appears.
Any takers?
