You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
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](https://camo.githubusercontent.com/80671ad62831e6039db04041d3bea4d4b93b6f913ffc525eea09b06f139c5609/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3130393531332f32313932322f64366662316366322d343964632d313165322d396632352d3231343635653732306336322e706e67)
New behaviour:
![out2](https://camo.githubusercontent.com/cd531002a1de3904ac6cf4bf7394b5ee5ab7a20e1aa1ec7311958a610832bc75/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3130393531332f32313932352f65623133656137612d343964632d313165322d396635622d6533336566373032653933382e706e67)
The suggested fix is here fe63689
The text was updated successfully, but these errors were encountered: