I am a beginner in LaTeX, tentatively using it for industrial documents. I am facing a lot of trouble trying to add some simple Tikz graphics to a series of Tikz pictures (very complicated, with lots of code and numerous arguments in each) generated by a series of macros. I would like to add to them additional notes with arrows, and occasionnaly, include the combined resulting graphics into figures with captions. It seemed to me that the "remember picture, overlay" option would do the job. Below is an overly simplified example. However I cannot understand how the coordinate system of the second picture relates to the first picture. I have tentatively tried to add "remember picture, overlay" to the macro generating the first picture, but without improvements... Could someone explain, and advise a path forward?
\documentclass[dvipsnames]{article}
\usepackage{tikz}
\tikzstyle{wired}=[draw=gray!30, line width=0.15mm]
\tikzstyle{number}=[anchor=center, color=white]
\newcommand{\strip}[4]{
\filldraw[#1, wired]
({18 * #2} : #3) arc
({18 * #2} : {18 * (#2 + 1)} : #3) --
({18 * (#2 + 1)} : #4) arc
({18 * (#2 + 1)} : {18 * #2} : #4) -- cycle;
}
\newcommand{\sector}[3]{
\filldraw[#1, wired]
(0, 0) --
({18 * #2} : #3) arc
({18 * #2} : {18 * (#2 + 1)} : #3) -- cycle;
}
\newcommand{\DrawShape}[0]{%
\centering
\begin{tikzpicture}[rotate=81, scale=.2, remember picture, overlay]
\fill[gray!50] (0, 0) circle (225.5mm);
\foreach\i in {1,3,...,19} {
\sector{white}{\i}{162mm}
}
\end{tikzpicture}
}%
\begin{document}
\DrawShape
\begin{tikzpicture}[scale=8]
\begin{scope}[remember picture,overlay]
\coordinate (n1) at (0, 0);
\node[draw,font=\small,inner sep=5pt, anchor=west] (n1x) at (0.6,0) {\textbf{Optimum location}};
\draw[<-, >=latex,line width =5 pt, red] (n1) -- (n1x.west);
\draw[help lines,xstep=.1,ystep=.1] (0,0) grid (1,1);
\foreach \x in {0,1,...,9} { \node [anchor=north] at (\x/10,0) {0.\x}; }
\foreach \y in {0,1,...,9} { \node [draw] at (0,\y/10) {0.\y}; }
\end{scope}
\end{tikzpicture}
\vspace{10cm}
\DrawShape
\begin{figure}[ht]
\begin{tikzpicture}[scale=8]
\begin{scope}[remember picture,overlay]
\coordinate (n1) at (0, 0);
\node[draw,font=\small,inner sep=5pt, anchor=west] (n1x) at (0.6,0) {\textbf{Optimum location}};
\draw[<-, >=latex,line width =5 pt, red] (n1) -- (n1x.west);
\draw[help lines,xstep=.1,ystep=.1] (0,0) grid (1,1);
\foreach \x in {0,1,...,9} { \node [anchor=north] at (\x/10,0) {0.\x}; }
\foreach \y in {0,1,...,9} { \node [draw] at (0,\y/10) {0.\y}; }
\end{scope}
\end{tikzpicture}
\caption{An embarassing shift of the coordinate system and caption position \dots}
\end{figure}
\end{document}