\begin{figure}\begin{center}
    \resizebox{\textwidth}{!}{
      \includegraphics[width=\textwidth]{../figures/myfig}}
  \caption{My Figure}\label{myfig}
\end{center}\end{figure}