# How do I move the table to the vertically center ? , and align figure and table together

 \begin{figure}[htbp]
\centering
\makebox[0.5\textwidth]{\includegraphics[width=0.7\textwidth]{figure/ch3/result_s2/book.jpg}}
\scalebox{0.7}{
\begin{tabular}[c]{cc}
\hline
\textbf{Method} & \textbf{$\sigma$} \\ \hline
method 1 & 0.0 \\
method 2 & 0.1 \\
method 3 & 0.2 \\ \hline
\end{tabular}}
\end{figure}


I suggest you place the graphic inside a minipage of width 0.5\textwidth.

\documentclass{article}
\usepackage[demo]{graphicx} % omit 'demo' option in real document
\begin{document}
\begin{figure}
\centering
\begin{minipage}{0.5\textwidth}
\includegraphics[width=\linewidth]{figure/ch3/result_s2/book.jpg}
\end{minipage}%
\begin{tabular}{cc}
\hline
\textbf{Method} & \textbf{$\sigma$} \\
\hline
method 1 & 0.0 \\
method 2 & 0.1 \\
method 3 & 0.2 \\
\hline
\end{tabular}
\end{figure}
\end{document}

• I would have use \hfil instead of \hspace{4em}, assuming you wanted to center the tabular in the remaining space. – John Kormylo May 25 '15 at 14:48
• @JohnKormylo - I must confess I wasn't sure I fully understood the OP's objectives. I assumed the posting was mostly about how to position the two objects vertically centered relative to each other. Maybe the OP will still weigh in with a more detailed statement of his/her objectives. – Mico May 25 '15 at 15:02