# [Tex/LaTex] How to get two figures beside each other, and have them outside the margins

minipage

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.

As of now my latex code looks like this:

\begin{figure}[H]
\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{figure}


If you do not have a twoside document then you can ignore the \ifthispageodd line

\documentclass[twoside]{scrartcl}
\usepackage{mwe}
\usepackage{showframe}
\newlength\fullwidth
\setlength\fullwidth{\dimexpr\textwidth+\marginparwidth+\marginparsep\relax}
\newenvironment{Figure}
{\begin{figure}[!htb]%
\ifthispageodd{}{\hspace*{\dimexpr-\marginparsep-\marginparwidth}}%
\minipage{\fullwidth}}
{\endminipage\end{figure}}

\begin{document}
\blindtext\newpage\blindtext

\begin{Figure}
\begin{minipage}[b]{0.49\linewidth}
\includegraphics[width=\linewidth]{example-image}
\caption{Caption one.\label{bar}}
\end{minipage}\hfill
\begin{minipage}[b]{0.49\linewidth}
\includegraphics[width=\linewidth]{example-image-16x10}
\caption{Caption two.}
\end{minipage}
\end{Figure}

\blindtext
\begin{Figure}
\begin{minipage}{0.49\linewidth}
\includegraphics[width=\linewidth]{example-image}
\caption{Caption one.}
\end{minipage}\hfill
\begin{minipage}{0.49\linewidth}
\includegraphics[width=\linewidth]{example-image}
\caption{Caption two.\label{foo}}
\end{minipage}
\end{Figure}

As seen in Figure~\ref{bar} on page~\pageref{bar} \ldots

\Blindtext

As seen in Figure~\ref{foo} on page~\pageref{foo} \ldots

\end{document}