Quero fazer uma seta para a direita apontando da figura esquerda para a direita.
A seguir está meu código atual.
\begin{figure}[H]
\centering
\begin{subfigure}{.5\textwidth}
\centering
\includegraphics[width=.7\linewidth]{2D/cc1.png}
\caption{Original Matrix, $A$}
\end{subfigure}%
\begin{subfigure}{.5\textwidth}
\centering
\includegraphics[width=.7\linewidth]{2D/cc2.png}
\caption{Jordan Canonical Form of Matrix, $A$}
\end{subfigure}
\caption{Changing Coordinates}
\end{figure}
que gera
Responder1
Você pode simplesmente reduzir seu subfigure
s para .47\textwidth
e inserir algo como
{\LARGE$\xrightarrow{T}$}
entre eles.
MWE:
\documentclass{article}
\usepackage{float,subcaption}
\usepackage[demo]{graphicx}
\usepackage{amsmath}
\begin{document}
\begin{figure}[H]
\centering
\begin{subfigure}{.47\textwidth}
\centering
\includegraphics[width=.7\linewidth]{2D/cc1.png}
\caption{Original Matrix, $A$}
\end{subfigure}%
{\LARGE$\xrightarrow{T}$}%
\begin{subfigure}{.47\textwidth}
\centering
\includegraphics[width=.7\linewidth]{2D/cc2.png}
\caption{Jordan Canonical Form of Matrix, $A$}
\end{subfigure}
\caption{Changing Coordinates}
\end{figure}
\end{document}
Saída
Responder2
Aqui está uma tentativa usando tikz
. Isso permite que você personalize o estilo da seta e a posição do arquivo T
.
\documentclass{article}
\usepackage{float,subcaption}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{tikz}
\begin{document}
\begin{figure}[H]
\centering
\begin{subfigure}{.47\textwidth}
\centering
\tikz[remember picture]\node[inner sep=0pt,outer sep=0pt] (a){\includegraphics[width=.7\linewidth]{example-image-a}};
\caption{Original Matrix, $A$}
\end{subfigure}%
\begin{subfigure}{.47\textwidth}
\centering
\tikz[remember picture]\node[inner sep=0pt,outer sep=0pt] (b){\includegraphics[width=.7\linewidth]{example-image-b}};
\caption{Jordan Canonical Form of Matrix, $A$}
\end{subfigure}
\tikz[remember picture,overlay]\draw[line width=2pt,-stealth,magenta] ([xshift=2mm]a.east) -- ([xshift=-2mm]b.west)node[midway,above,text=black,font=\LARGE\bfseries\sffamily] {T};
\caption{Changing Coordinates}
\end{figure}
\end{document}
Responder3
\documentclass{article}
\usepackage{subcaption}
\usepackage[demo]{graphicx}
\usepackage{stackengine}
\begin{document}
\begin{figure}[H]
\centering
\begin{subfigure}{.5\textwidth}
\centering
\includegraphics[width=.7\linewidth]{2D/cc1.png}
\caption{Original Matrix, $A$}
\end{subfigure}%
\hsmash{\scalebox{2.7}{\stackon{$\rightarrow$}{\scriptsize\textsf{T\,}}}}%
\begin{subfigure}{.5\textwidth}
\centering
\includegraphics[width=.7\linewidth]{2D/cc2.png}
\caption{Jordan Canonical Form of Matrix, $A$}
\end{subfigure}
\caption{Changing Coordinates}
\end{figure}
\end{document}