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

Acorr() creates two labels #9944

Closed
MichaelClerx opened this issue Dec 6, 2017 · 0 comments
Closed

Acorr() creates two labels #9944

MichaelClerx opened this issue Dec 6, 2017 · 0 comments
Milestone

Comments

@MichaelClerx
Copy link

Bug report

When acorr() is given a label, it uses it for two different lines, resulting in two near-identical entries in the legend.

Code for reproduction

#!/usr/bin/env python
import numpy as np
import matplotlib.pyplot as plt

x = np.random.normal(0, 10, 1000)

plt.figure()
plt.acorr(x, label='x')
plt.legend(loc='upper right')
plt.show()

Actual outcome

figure_1

Expected outcome

figure_2

Matplotlib version

  • Matplotlib version: 2.0.0
@tacaswell tacaswell added this to the v2.2 milestone Dec 6, 2017
@QuLogic QuLogic modified the milestones: needs sorting, v2.2.0 Feb 12, 2018
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

3 participants