I want two images side by side and I'm currently using the following code:
\begin{figure}[!h]
\centering
\begin{subfigure}[t]{.45\textwidth}
\centering
\includegraphics[width=\textwidth]{./0_intro/img/cost_breakdown.png}
\caption{}
\label{fig:cost_breakdown}
\end{subfigure}
\begin{subfigure}[t]{.45\textwidth}
\centering
\includegraphics[width=\textwidth]{./0_intro/img/cost_breakdown_forecast.png}
\caption{}
\label{fig:cost_breakdown_forecast}
\end{subfigure}
\caption{\emph{Source: DOE SSL Roundtable and Workshop attendees}}
\label{fig:costs_BD_FC}
\end{figure}
I played changing the width of the images and it did not work.
Any idea? Thanks!
Best Answer
with subcaption