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

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

Comments

Projects
None yet
2 participants
Contributor

garaud 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

Member

cpcloud 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 closed this Jul 14, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment