I have googled forever and tried to find the answer to my question, but I can't seem to find an answer to this. I have two figures that I want to place beside each other. The figures are MATLAB plots and are saved as pdfs, therefore they have to be clipped and scaled to get an okay size in my latex file. I have tried to put the figures beside each other by using minipage and this works, but the figures are too large to fit within the text width, so some parts of the figures are not showing. Can anyone please help me with this?
As of now my latex code looks like this:
\begin{figure}[H]
\begin{addmargin*}[0cm]{-3cm}
\begin{minipage}{0.5\textwidth}
\centering
\includegraphics[trim={1.4cm 7.5cm 2.0cm 7.5cm},clip, scale = 0.5]{figure1}
\caption{Caption one.}
\end{minipage}
\begin{minipage}{0.5\textwidth}
\includegraphics[trim={1.4cm 7.5cm 2.0cm 7.5cm},clip, scale = 0.5]{figure2}
\caption{Caption two.}
\end{minipage}
\end{addmargin*}
\end{figure}


\begin{figure}[H] \begin{addmargin*}[0cm]{-3cm} \begin{minipage}{0.5\textwidth} \centering \includegraphics[trim={1.4cm 7.5cm 2.0cm 7.5cm},clip, scale = 0.5] {figure1} \caption{Flower one.} \end{minipage}
\end{figure}
– kga Dec 16 '15 at 13:28Ctrlandk. In comments, this does not work. Please edit your question to include the modified code, and please make the exampe compilable. That is the only way, we are talking about the same problem. – Johannes_B Dec 16 '15 at 14:02\leavevmode\hspace*(-3cm}\includegraphics ...; for the figure on the right, insert the negative\hspaceto the right of the\includegraphics. and lose the blank line between the two minipages as already mentioned. if you want the captions centered on the graphics, insert the\leavevmode and\hspaces outside the minipages, and end the line with\par`. – barbara beeton Dec 16 '15 at 19:27