I'm trying to draw two figures next to each others using tikzpicture. It's working fine, but the caption of the sub-figures is looking weird.
I tried adding the \qquad's, but I'm still having the same problem.
Here's my code;
\documentclass{article}
\usepackage{tikz,subfigure}
\begin{document}
\begin{figure}[!hb]%
\centering
\subfigure[Caption for subfigure 1]{
\begin{tikzpicture}[every node/.style={circle,draw}]
\node{5};
\end{tikzpicture}
}
\qquad\qquad\qquad
\subfigure[Caption for subfigure 2]{
\begin{tikzpicture}[every node/.style={circle,draw}]
\node{}
child{node{}}
child[missing];
\end{tikzpicture}
}
\caption{}%
\label{}%
\end{figure}
\end{document}
Here's the resulting image


\path (0,0) rectangle(3,3);to both tikzpictures to see the effect. So either adjust the bounding boxes withintikzpictureenvironments or use minipages or other artificial boxes. – percusse Mar 18 '12 at 3:40\path (0,0) rectangle(3,3);solved my problem. Thank you – Roronoa Zoro Mar 18 '12 at 3:46\path (-2,0) rectangle (2,0);which also doesn't add to the picture's height. – egreg Mar 18 '12 at 9:32