-->

Thursday, April 18, 2013

table and figure together




\documentclass{article}

\usepackage{floatrow}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%MARGINS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[a4paper,left=2.5cm, right=2.5cm, top=2.5cm, bottom=4.5cm]{geometry}

\usepackage[latin1]{inputenc}
\usepackage[pdftex]{graphicx}

% \usepackage{wrapfig}


\begin{document}


\begin{figure}[!h]\small
 
  \begin{floatrow}
    \floatbox[]{table}[0.9\FBwidth][40mm][c]{

      \begin{tabular}{ @{\extracolsep{-3pt}} l|ccc|c}
        & \multicolumn{3}{c}{nDCG(k)} & \\
        \hline
        \textsc{Method} & k=10 & k=20 & k=50 & mAP-1 \\
        \hline
        Classification & 0.230 & 0.227 & 0.224 & 5.810\\
        \textbf{JRM} & 0.234 & 0.228 & 0.217 & 5.602 \\
        \textbf{JRM}: rebalanced & \textbf{0.253} & \textbf{0.244} & \textbf{0.227} & \textbf{6.980} \\
      \end{tabular}

}
{
  \caption{Results with and without data rebalancing. For the mAP-{i} results, the top i results are considered relevant.}
  \label{tab:rebalancing}
}
\hspace{0mm}

\ffigbox[1.1\FBwidth]{
  \includegraphics[width=0.3\textwidth]{Nature_reldist.pdf}
}
{\caption{Distribution of relevance levels for the ``Nature'' category.}
  \label{fig:nature_data}}
\end{floatrow}
\end{figure}

\end{document}

No comments:

Post a Comment