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

add legend to DataFrame.plot() #324

Closed
sjev opened this issue Nov 2, 2011 · 5 comments
Closed

add legend to DataFrame.plot() #324

sjev opened this issue Nov 2, 2011 · 5 comments
Milestone

Comments

@sjev
Copy link
Contributor

sjev commented Nov 2, 2011

It would be very helpful if DataFrame.plot() function would also provide a legend with column names

@wesm
Copy link
Member

wesm commented Nov 2, 2011

If you call plt.legend() after calling df.plot(), it plots the legend. Might be more useful if it just did this automatically, though

@wesm
Copy link
Member

wesm commented Nov 2, 2011

cf http://pandas.sourceforge.net/visualization.html#basic-plotting-plot

@sjev
Copy link
Contributor Author

sjev commented Nov 2, 2011

Thanks! Maybe its a good idea to include 'legend' options in df.plot(legend='True') ....

@sjev sjev closed this as completed Nov 2, 2011
@wesm wesm reopened this Nov 2, 2011
@wesm
Copy link
Member

wesm commented Nov 2, 2011

cool. I agree with you-- I'll leave the issue open so I don't forget to do this

@wesm
Copy link
Member

wesm commented Nov 3, 2011

I added this in git master-- so it plots a legend by default now but you can also pass legend=False to disable it

@wesm wesm closed this as completed Nov 3, 2011
dan-nadler pushed a commit to dan-nadler/pandas that referenced this issue Sep 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants