Added magnifying glass

This commit is contained in:
Andreas Tsouchlos 2023-01-27 00:31:07 +01:00
parent c5e555c123
commit a3c1adf3db
2 changed files with 9 additions and 1 deletions

View File

@ -24,6 +24,7 @@
%\setbeameroption{show notes on second screen=right} %\setbeameroption{show notes on second screen=right}
\usepgfplotslibrary{colorbrewer} \usepgfplotslibrary{colorbrewer}
\usetikzlibrary{external} \usetikzlibrary{external}
\usetikzlibrary{spy}
\tikzexternalize[prefix=build/] \tikzexternalize[prefix=build/]

View File

@ -586,9 +586,11 @@ return $\boldsymbol{\hat{c}}$
\end{tikzpicture} \end{tikzpicture}
\end{minipage}% \end{minipage}%
\begin{minipage}[c]{0.5\textwidth} \begin{minipage}[c]{0.5\textwidth}
\vspace*{-1cm}
\centering \centering
\begin{tikzpicture}[scale = 0.85] \begin{tikzpicture}[scale = 0.85, spy using outlines={circle, magnification=6,
connect spies}]
\begin{axis}[ \begin{axis}[
grid=both, grid=both,
xlabel={Iterations}, xlabel={Iterations},
@ -610,7 +612,12 @@ return $\boldsymbol{\hat{c}}$
\addlegendentry{est} \addlegendentry{est}
\addlegendentry{$\left(\nabla L \right)_1$} \addlegendentry{$\left(\nabla L \right)_1$}
\addlegendentry{$\left(\nabla h \right)_1 $} \addlegendentry{$\left(\nabla h \right)_1 $}
\coordinate (spypoint) at (axis cs:100,0.53);
\coordinate (magnifyglass) at (axis cs:175,2);
\end{axis} \end{axis}
\spy [black, size=2cm] on (spypoint)
in node[fill=white] at (magnifyglass);
\end{tikzpicture} \end{tikzpicture}
\end{minipage}% \end{minipage}%
\begin{minipage}[c]{0.25\textwidth} \begin{minipage}[c]{0.25\textwidth}