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

VIS: DataFrame.plot(kind='kde') does not display the legend. #4216

Closed
garaud opened this issue Jul 11, 2013 · 1 comment

Comments

@garaud
Copy link
Contributor

commented Jul 11, 2013

Hi,

I would like to have the legend when I display the 'kde' (also called 'dentity') of a DataFrame. The plot method works well with the other kind options (i.e. bar, barh and line).

Following piece of code:

import numpy as np
import pandas as pd
df = pd.DataFrame({'X': np.random.randn(500),
                   'Y': 2. + np.random.randn(500)*0.75})
# then
df.plot(kind='kde')

does not display the legend for X and Y (even if I set legend=True which is the default value of the legend parameter). Note: I'm on master > 0.12rc1

Best regards,
Damien

@cpcloud

This comment has been minimized.

Copy link
Member

commented Jul 14, 2013

closed via #4221. for some reason it didn't get closed. i think you might have to put the word "closes" in there for it auto close the issue

@cpcloud cpcloud closed this Jul 14, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.