Code: Select all
\begin{figure} [H]
\centering{\includegraphics[scale=1]{Figure.png}}
\caption{Figure.}
\label{fig:Figure}
\end{figure}
\begin{algorithm}[H]
\algsetup{indent=2em}
\begin{adjustwidth}{1em}{}
\begin{algorithmic}[1]
\STATE $Line$ $of$ $code$
\end{algorithmic}
\caption{Algorithm.}
\label{alg:Algorithm}
\end{adjustwidth}
\end{algorithm}
Where the figure and algorithm are connected?
The package subfig is not compatible with other packages in the current project.