I'm trying to align a table and a figure in Latex, but I`m not getting the results I want. I followed this answer : Table and figure side-by-side with independent captions
This is the code I used
\documentclass{article}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{standalone}
\usepackage{pgf}
\usepackage[font=small,labelfont=bf]{caption}
% Table float box with bottom caption, box width adjusted to content
\newfloatcommand{capbtabbox}{table}[][\FBwidth]
\begin{document}
\begin{minipage}{\textwidth}
\begin{minipage}[b]{0.49\textwidth}
\vspace{0pt}
\centering
\rule{6.4cm}{3.6cm}
\end{minipage}
\hfill
\begin{minipage}[b]{0.49\textwidth}
\vspace{0pt}
\centering
\begin{tabular}{cc}\hline
Table head & Table head \\ \hline
Some values & Some values \\
Some values & Some values \\
Some values & Some values \\
Some values & Some values \\
Some values & Some values \\
Some values & Some values \\ \hline
\end{tabular}
\end{minipage}
\end{minipage}
\end{document}


[t]aligned minipages not[b]so they both align on thevspace{0pt}(which otherwise is doing nothing) – David Carlisle Mar 12 '19 at 21:23[b]with[t]. – Bernard Mar 12 '19 at 21:24