# How can a title be placed for a group of pgfplots?

Using the groupplots library in pgfplots, how can a title be set for a group of plots? The following code (basically from the manual) is an example layout. I don't want each plot to have a title, but rather a title be placed centered on top of the group.

\documentclass[crop,tikz]{standalone}

\usepackage{pgfplots}
\usepgfplotslibrary{groupplots}

\begin{document}

\begin{tikzpicture}
\begin{groupplot}[
group style={
{group size=2 by 2}},
height=3cm,width=3cm,
title={Title}]

\nextgroupplot
\nextgroupplot
\nextgroupplot
\nextgroupplot
\end{groupplot}
\end{tikzpicture}

\end{document}


-

You can use a TikZ node as a title for a quick solution.

\documentclass{article}
\usepackage{pgfplots}
\usetikzlibrary{calc}
\usepgfplotslibrary{groupplots}
\begin{document}
\begin{tikzpicture}
\begin{groupplot}[group style={group size=2 by 2},height=3cm,width=3cm]
\nextgroupplot[title=One]
\nextgroupplot[title=Two]
\nextgroupplot[title=Three]
\node (title) at ($(group c1r1.center)!0.5!(group c2r1.center)+(0,2cm)$) {THE Title};

Since I don't intend on having individual plot titles, I used \node (title) at ($(group c1r1.north)!0.5!(group c2r1.north)$) [above, yshift=\pgfkeysvalueof{/pgfplots/every axis title shift}] to simulate how pgfplots places the title using axis description cs. –  sappjw Apr 6 '12 at 18:30