At present there is no way to directly position the legend of a groupplot
environment directly - that means within the groupplot
environment and so one often sees stuff like
\node at (plots c2r1.south) [inner sep=0pt,anchor=north, yshift=-5ex] {\ref{grouplegend}};
or similar to position the legend afterwards. Therefore it would be nice to simplify this.
My idea is to create another key like /pgfplots/group/legend pos
to which could be given similar values as for /pgfplots/legend pos
, but of course this time they should be outside the "groupplot node" (by that I mean a node that "contains" all the \nextgroupplot
s) like
outer north east
(being on the right, top alined as for normal axis')outer north west
(being on top, left aligned)outer north
(being at the top, centered)outer south
(being at the bottom, centered).In case there should be an "group/empty plot
", it would be nice, if the legend could be positioned there with let's say c2r2
or similar.
And in case someone wants to use the at
syntax to place the legend it would be nice if there would be the posibility to draw it relativ to the "groupplot node" instead of just relative to one \nextgroupplot
.
It seems that almost the same thoughts were already stated at http://tex.stackexchange.com/questions/230069 ...
(I already had a look at that one or two weeks ago, but couldn't finish this feature request and it seems that I forgot, that the above TeX.SX question was a very good summary of that issue.)
Here are some TeX.SX questions I found related to this topic (I'll extend the list if I find more).