Table and Figure Side by Side

  • Author:Long Gong
  • Last Edited:01-12-2017
  • Tags: latex

While write a paper (or a proposal), you might need to place a table and a figure in a same row to save some space (or for some other reasons). In this post, I will provide two simple approaches. The first one is based on floatrow. The second one is based on minipage and caption.

floatrow Based Solution

\begin{figure}\CenterFloatBoxes
\begin{floatrow}
\ffigbox[\FBwidth]
{\cpation{figure caption goes here}\label{fig: figure-label}}
{figure puts here}
\killfloatstyle\ttabbox[\Xhsize]
{\caption{table caption goes  here}\label{tab: table-label}}
{table puts here}
\end{floatrow}
\end{figure}

Remarks:

  • In two column environment, \begin{figure}...\end{figure} should be replaced by \begin{figure*}...\begin{figure*} if you want your mixed results occupy both of the columns.
  • If you have used float package, you can not use this solution. Because they are incompitable.

minipage Based Solution

\begin{figure}
\centering
\begin{minipage}{0.5\textwidth}
\centering
figure puts here
\cpation{figure caption goes here}\label{fig: figure-label}
\end{minipage}
\begin{minipage}
\centering
\captionsetup{type=table} %% tell latex to change to table
table puts here
\caption{table caption goes  here}\label{tab: table-label}
\end{minipage}
\end{figure}

Notice

If you have better solution, welcome to share with us.