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

Invalid usage suggested in legend docstring #1459

Closed
stefanv opened this issue Nov 8, 2012 · 1 comment
Closed

Invalid usage suggested in legend docstring #1459

stefanv opened this issue Nov 8, 2012 · 1 comment

Comments

@stefanv
Copy link
Contributor

stefanv commented Nov 8, 2012

The legend docstring gives as an example:

legend( (line1, line2, line3),  ('label1', 'label2', 'label3'), loc=2)

which results in:

legend.py:610: UserWarning: Legend does not support [<matplotlib.lines.Line2D object at 0x2bf2d10>]
Use proxy artist instead.

http://matplotlib.sourceforge.net/users/legend_guide.html#using-proxy-artist

@stefanv
Copy link
Contributor Author

stefanv commented Nov 8, 2012

Ah, very confusing, but forgot to unpack the line, hence passed a tuple of tuples as lines, which looks fine from the error message, but is actually incorrect.

@stefanv stefanv closed this as completed Nov 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant