Skip to content

Using matplotlib scatter legends? #31357

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

Closed
amueller opened this issue Jan 27, 2020 · 3 comments · Fixed by #34293
Closed

Using matplotlib scatter legends? #31357

amueller opened this issue Jan 27, 2020 · 3 comments · Fixed by #34293
Assignees
Labels
Milestone

Comments

@amueller
Copy link

Matplotlib now allows doing legends for categorical data in scatter:
https://matplotlib.org/gallery/lines_bars_and_markers/scatter_with_legend.html

Is that something that pandas could/should use?
I feel like there's a tricky issue in deciding whether the color variable is categorical but basically matplotlib allows us now to treat the case and I'm not sure if treating all cases as continuous makes the most sense.

@MarcoGorelli MarcoGorelli added the Visualization plotting label Jan 27, 2020
@charlesdong1991
Copy link
Member

take

@charlesdong1991
Copy link
Member

@amueller looks nice! would be nice to have it, I will check and see if a patch can be made to add this feature

@lfmaomao
Copy link

lfmaomao commented Mar 7, 2020

Thanks for sharing

@jreback jreback added this to the 1.3 milestone Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants