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}
\usepgfplotslibrary{colorbrewer}
\usetikzlibrary{external}
\usetikzlibrary{spy}
\tikzexternalize[prefix=build/]

View File

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