I know how to create a legend in a pgfplots plot. See
and
Using a pgfplots-style legend in a plain-old tikzpicture.
But I do not know how I can create a legend with two columns.
|
I know how to create a legend in a pgfplots plot. See and Using a pgfplots-style legend in a plain-old tikzpicture. But I do not know how I can create a legend with two columns. |
||||
|
Simply set the key Depending on what you need, you might also be interested in EDIT: in order to customize the legend's appearance, you can use Here is an example:
|
|||||
|
\multicolsenvironment inside your legend code? – Thanos Nov 3 '12 at 10:00\addlegendimages in a\multicolsenvironment like\begin{multicols}{2} \addlegendimage \addlegendimage \addlegendimage \end{multicols}– Thanos Nov 3 '12 at 10:17