Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legend for a group of plots #64

Open
pevnak opened this issue Dec 16, 2016 · 3 comments
Open

Legend for a group of plots #64

pevnak opened this issue Dec 16, 2016 · 3 comments

Comments

@pevnak
Copy link

pevnak commented Dec 16, 2016

Hi Sisl,
I would appreciate the possibility to plot a single legend for a groups of plots, as it is for example shown here:
http://pgfplots-features.706524.n3.nabble.com/Pgfplots-features-groupplot-legend-outside-of-an-axis-and-externalizing-everything-td1676716.html
I was able to almost implement it with the current status, but I have failed to add
\ref{named} after the
\end{tikzfigure}

Otherwise, I enjoy using your package.
#enhan

@mykelk
Copy link
Member

mykelk commented Dec 17, 2016

I think this would be a nice feature to have. What would you like the interface to look like (i.e., what commands would you want the user to type into PGFPlots.jl to produce this legend)?

@pevnak
Copy link
Author

pevnak commented Dec 19, 2016

Hi,
it was sort of "hacky".
in the string legendentry I had "label1,label2,label3,...,labeln,", therefore below I chop off trailing comma.
p.style="legend entries={"legendentry[1:end-1]"},legend to name=named
I put this into the Axis description. Then, after the tikz picture is closed, I need to put \ref{named} to render the legend.
Tomas

@mykelk
Copy link
Member

mykelk commented Dec 19, 2016

Right. But what would you like it to look like? And then we'll try to make an interface to accommodate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants