This is my tikz code to draw some plots.
\documentclass{article}
\usepackage{tikz,subfig}
\begin{document}
\begin{figure}
\centering
\subfloat[Iteration Domain for a Tile]{
\begin{tikzpicture}
\draw (0,0) rectangle (3.8,3.8);
\end{tikzpicture}
}
\subfloat[Convex Bounding Boxes]{
\begin{tikzpicture}
\draw (0,0) rectangle (3.8,3.8);
\end{tikzpicture}
}
\subfloat[Disjoint Bounding Boxes]{
\begin{tikzpicture}
\draw (0,0) rectangle (3.8,3.8);
\end{tikzpicture}
}
\caption{Bounding boxes for disjoint union of data regions}
\end{figure}
\end{document}
And this is the output:

I want to draw something like this:

How do I do it?
There are mainly two things:
- I want to put legend at the top.
- I want to put some description for (a) and some description for both (b) and (c) as shown in above figure.

\begin{tikzpicture}\draw (0,0) rectangle (4,4);\end{tikzpicture}. By using that MWE you can still remove many preamble lines (and also,listingsis not used, so that should also be removed). – nickpapior Mar 08 '13 at 11:47