[Tex/LaTex] 4 images on a frame appearing each a a time – fine tuning beamer

beamergraphicspause

I have a figure which consists of 4 plots, Full figure here, and I want to have them appearing one by-one in the presentation (from left to right, top to bottom). I managed to do this by including each plot separately using a combination of \subfloat and \pause:

\begin{frame} \frametitle{Cufflinks analysis - SRSF1}
  \begin{figure}[t]
    \centering
     \captionsetup[subfloat]{labelformat=empty}
      \subfloat[]{\label{} \includegraphics[scale = 0.20]{Image1.pdf}} 
      \pause \subfloat[]{\label{} \includegraphics[scale = 0.20]{Image2.pdf}}\\
      \pause \subfloat[]{\label{} \includegraphics[scale = 0.20]{Image3.pdf}}
      \pause \subfloat[]{\label{} \includegraphics[scale = 0.20]{Image4.pdf}}
  \end{figure}
\end{frame}

[edit] Result: example

The issue with this solution is that the vertical spacing between the rows of images is rather large. I would like to reduced it in order to increase the size of each image – better use of space really.

If someone has a simple alternative where all 4 plots are part of a single image and each part is uncovered when needed it would be great.

Be gentle, this is my 1st beamer presentation.

Best Answer

It's not much different than what you have already.

\documentclass{beamer}
\usepackage{mwe} % For dummy images
\usepackage{lmodern} % To suppress some warnings

\begin{document}
\begin{frame}
\centering
\begin{tabular}{c@{}c}
 \includegraphics[width=0.4\textwidth,trim=0 120 160 0,clip]{example-image-a}\pause% 
&\includegraphics[width=0.4\textwidth,trim=160 120 0 0,clip]{example-image-a}\\[-1.5mm]\pause%
 \includegraphics[width=0.4\textwidth,trim=0 0 160 120,clip]{example-image-a}\pause%
&\includegraphics[width=0.4\textwidth,trim=160 0 0 120,clip]{example-image-a}
\end{tabular}

\end{frame}
\end{document}

enter image description here

The trimming might not be good as I did it by eyeballing.

EDIT For the custom image, the following trim values seem to work.

\documentclass{beamer}
\usepackage{graphicx}
\usepackage{lmodern} % To suppress some warnings

\begin{document}
\begin{frame}
\centering
\begin{tabular}{c@{}c}
 \includegraphics[width=0.3\textwidth,trim=0 270 260 0,clip]{SRSF1_details_1fig}\pause% 
&\includegraphics[width=0.3\textwidth,trim=260 270 0 0,clip]{SRSF1_details_1fig}\\[-1.5mm]\pause%
 \includegraphics[width=0.3\textwidth,trim=0 0 260 265,clip]{SRSF1_details_1fig}\pause%
&\includegraphics[width=0.3\textwidth,trim=260 0 0 265,clip]{SRSF1_details_1fig}
\end{tabular}

\end{frame}
\end{document}

enter image description here

Related Question