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

plotting legends none #1610

Closed
segasai opened this issue Dec 19, 2012 · 1 comment · Fixed by #1611
Closed

plotting legends none #1610

segasai opened this issue Dec 19, 2012 · 1 comment · Fixed by #1611
Assignees

Comments

@segasai
Copy link
Contributor

segasai commented Dec 19, 2012

Hi,

It looks like in matplotlib-1.2.0 the behaviour of the legend has changed with regards to the labels which are "None".
In mpl 1.1.1 this code

import matplotlib.pyplot as plt

plt.plot([0,1],label=None)
plt.plot([0.1,1.2],label='dat2')

plt.legend()

plt.savefig('out.png')

was only creating the legend for the second line (that's what I would like to see),
but in 1.2.0 this code started to produce the legend for the first line with label='None'. See attached figures. To me this looks like a regression (which breaks a lot of my plots).

Thanks

Old behaviour:
out1

New behaviour:
out2

The suggested fix is here fe63689

@dmcdougall
Copy link
Member

Fixed in #1611.

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

Successfully merging a pull request may close this issue.

2 participants