I am trying to align two subfloats so that their captions are on the same horizontal line. The figures themselves should be centered. The code I have is the following, but what I am getting is in the attached figure. What am I doing wrong?
\documentclass{scrartcl} % KOMA script (my preference)
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{tikz-rdf}
\usepackage{tikz}
\usepackage{tkz-graph}
\usepackage{tkz-berge}
\usetikzlibrary{shapes,shapes.callouts,,decorations.text,shapes.misc,decorations.pathmorphing,shapes.geometric,backgrounds,fit,positioning,arrows}
\begin{document}
\begin{figure*}[ht!]%
\subfloat[\scriptsize Transaction Database $D$]{
\begin{minipage}[c]{0.3\textwidth}
\centering
\scalebox{.7}{
\begin{tabular}{| p{1cm} | p{1.5cm} | p{4cm} |}\hline
Vertex ID & Entity \mbox{vertex} & Adjacent Attribute Properties \\ \hline \hline
001 & Person1 & salary, gender, title \\ \hline
002 & Person2 & salary, gender, title, nationality \\ \hline
003 & Person3 & salary, gender, title \\ \hline
004 & Person4 & salary, gender, title, nationality \\ \hline
005 & Person5 & salary, gender, nationality \\ \hline
006 & Person6 & salary, title, nationality \\ \hline
007 & Paper1 & year, inProceedings, paperTitle \\ \hline
008 & Paper2 & year, inProceedings, paperTitle \\ \hline
009 & Paper3 & year, inProceedings, paperTitle \\ \hline
010 & School1 & locatedIn, name \\ \hline
011 & School2 & locatedIn, name \\ \hline
012 & School3 & locatedIn, name \\ \hline
\end{tabular}
}
\end{minipage}
\label{fig:db}%
}%
%
\subfloat[\scriptsize T-Index]{
\begin{minipage}[c]{0.7\textwidth}
\centering
\begin{tikzpicture}[node distance=1.5cm, every edge/.style={link}]
%
%Inserting nodes N1-N3
%
\node[circle,draw] (n0){$N_{0}$};
\end{tikzpicture}
\end{minipage}
\label{fig:fp}%
}%
% \vspace{-0.2in}
\caption{T-index}%
\vspace{-0.2in}
\label{fig:star}
\end{figure*}
\end{document}


graphicxpackage with the demo option. You're asking about aligning sub-figures, and that doesn't need TikZ to demonstrate. http://meta.tex.stackexchange.com/q/228/9043 – qubyte Mar 07 '12 at 13:21