I would like to draw concentric circles that are displayed in sequence.
When applying the following code, the circles appear to move from the top edge downwards as each circle is displayed.
How to avoid this and make them displayed on top of each other from the same centre coordinate as in this diagram.
\documentclass{beamer}
\beamertemplatenavigationsymbolsempty
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{tkz-fct}
\usetikzlibrary{fadings}
\begin{document}
\begin{frame}[fragile,t]
\frametitle{}
\begin {center}
\begin{tikzpicture}[scale=.9, transform shape]
\only<1,5>
{
\node[circle, outer color=yellow!60!green, inner color=white, minimum width=5cm] (radial) at (4,0) {};
\fill[pattern=dots,pattern color = black] (3.6,-.4) -- + +(.8,0) -- ++ (0,.8) -- ++(-.8,0) -- cycle;
}
\only<4-5>
{
\node[circle, outer color=green!80!purple, inner color=purple, minimum width=4cm] (radial) at (4,0) {};
}
\only<3-5>
{
\node[circle, outer color=purple, inner color=purple!20!red, minimum width=3cm] (radial) at (4,0) {};
}
\only<2-5>
{
\node[circle, outer color=purple, inner color=purple!50!black, minimum width=2cm] (radial) at (4,0) {};
}
\end{tikzpicture}
\end {center}
\end{frame}
\end{document}