# Figure in a beamer slide

I am trying to produce a slide in beamer as:

% !TeX TS-program = xelatex
\documentclass{beamer}

\usecolortheme[rgb={0.7,0.2,0.2}]{structure}

\mode<article>{
\usepackage{fullpage}
\usepackage[bookmarks=false]{hyperref}
}

\mode<presentation>{
}

\newtheorem*{remark6}{\footnotesize Prediction, The Main Purpose of Spatial Analysis}

\title[\textcolor{yellow}{Analysis of Non-Gaussian Spatial Models with Covariates Measurement Error}]
{\Large  Analysis of Non-Gaussian Spatial Models with Covariates Measurement Error}
\date[{Ph.D. Thesis in Statistics} \hspace{5.3cm}December 4, 2018]{}%\\% \tiny November 2011

\begin{document}

\begin{frame}
\frametitle{\initfamily Prediction}
\begin{remark6}
\begin{columns}
\begin{column}{0.39\textwidth}
\vspace{-0.2cm}
\begin{figure}
\center\vspace{-0.1cm}
\includegraphics<1>[width=\textwidth, height=0.75\textwidth]{F13.png}
\includegraphics<2>[width=\textwidth, height=0.75\textwidth]{F14copy.png}
\includegraphics<3>[width=\textwidth, height=0.75\textwidth]{F13.png}
\includegraphics<4>[width=\textwidth, height=0.75\textwidth]{F14copy.png}
\end{figure}
\end{column}
\begin{column}{0.49\textwidth}
\pause
\begin{block}{\center\scriptsize Bayesian Inference}
\center\scriptsize
Data Agumentation Method
\end{block}
\pause
\begin{exampleblock}{\center\scriptsize Gibbs Sampling}
\center\scriptsize Metropolis - Hatings Algorithm
\end{exampleblock}
\pause
\begin{alertblock}{\center\scriptsize Bayesian Predictive Distribution}
\center\scriptsize Bayesian Spatial Prediction
\end{column}
\end{columns}
\end{remark6}
\end{frame}
\end{document}


But the figure boxes are in different sizes as:

and

How can I fix it?

The main problem is that you have unprotected line endings after your images. To fix this you have to add a % after each of them (for more information, see What is the use of percent signs (%) at the end of lines? )

I suggest to use \centering instead of \center. In fact you anyway don't need it in the figure because

1. figures are centred by default in beamer

2. your image spans the complete textwidth, so centering makes no difference

One step further: you actually don't need the figure environment as you don't have a caption. This will save you from manually messing with the vertical spaces.

The definition of remark6 looks more than a bit fishy, why not simply using a block?

\documentclass{beamer}

\usecolortheme[rgb={0.7,0.2,0.2}]{structure}

\mode<presentation>{
}

\begin{document}

\begin{frame}
\frametitle{Prediction}
\begin{block}{\footnotesize Prediction, The Main Purpose of Spatial Analysis}
\begin{columns}[T]
\begin{column}{0.39\textwidth}
\includegraphics<1>[width=\textwidth, height=0.75\textwidth]{example-image}%
\includegraphics<2>[width=\textwidth, height=0.75\textwidth]{example-image}%
\includegraphics<3>[width=\textwidth, height=0.75\textwidth]{example-image}%
\includegraphics<4>[width=\textwidth, height=0.75\textwidth]{example-image}%
\end{column}
\begin{column}{0.45\textwidth}
\pause
\begin{block}{\centering\scriptsize Bayesian Inference}
\centering\scriptsize Data Agumentation Method
\end{block}
\pause
\begin{exampleblock}{\centering\scriptsize Gibbs Sampling}
\centering\scriptsize Metropolis - Hatings Algorithm
\end{exampleblock}
\pause
\begin{alertblock}{\centering\scriptsize Bayesian Predictive Distribution}
\centering\scriptsize Bayesian Spatial Prediction

• @marmot \protect\marmot produces a happy looking marmot (as expected :) – samcarter_is_at_topanswers.xyz Nov 24 '18 at 20:19