Contents
How to put legend below the chart in pgfplots?
pgfplots defines several shortcut legend pos settings, as defined in Section 4.9.5 of its manual; here you could choose legend pos=north west or legend pos=outer north east, which is currently the only pre-defined legend position outside the axis box. If you want to place it in any other location, the legend pos keys are just shorthand for
How to customize the legend position in PGF?
If you use instead at= { (axis cs:<>,<>)} you specify the real coordinates of the axis, the same of your plot. The default position is north east. This means that north east correspond to a legend at a distance from axes of 2% the axes length. I imagine it is the same for the south west position, in that case it corresponds to:
How to change Legend Pos to outer south west?
So I thought I have just to replace legend pos=outer north east by legend pos=outer south west. But LaTex does not like this idea: Choice ‘outer south west’ unknown in key ‘/pgfplots/le gend pos’.
How to add two columns to a PGF matrix?
Simply set the key legend columns=2. Depending on what you need, you might also be interested in transpose legend and/or reverse legend. in order to customize the legend’s appearance, you can use legend style= { } where can be any option which applies to a PGF \\matrix.
Can you create a legend in a PGF matrix?
To my knowledge, this is impossible by means of a PGF \\matrix — and these kind of legends are a PGF \\matrix. As considered in your question, the remaining option would be to \\label every plot and generate a legend manually using ef to each plot, for example using
How to configure the legend in PGF-TeX-LaTeX?
How can I configure the legend such that it occupies a prescribed amount of space like the width of the figure? To my knowledge, this is impossible by means of a PGF \\matrix — and these kind of legends are a PGF \\matrix.