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

Support key_glyph #866

Open
bhvieira opened this issue Aug 30, 2024 · 1 comment
Open

Support key_glyph #866

bhvieira opened this issue Aug 30, 2024 · 1 comment
Labels

Comments

@bhvieira
Copy link
Contributor

bhvieira commented Aug 30, 2024

In ggplot2, geom_* callables support a key_glyph argument:

Each geom has an associated function that draws the key when the geom needs to be displayed in a legend. These functions are called draw_key_*(), where * stands for the name of the respective key glyph. The key glyphs can be customized for individual geoms by providing a geom with the key_glyph argument ( from https://github.com/tidyverse/ggplot2/blob/main/R/legend-draw.R)

In the future, it would be really useful if plotnine supported it as well.

See https://ggplot2.tidyverse.org/reference/draw_key.html

@has2k1 has2k1 added the Feature label Sep 4, 2024
@has2k1
Copy link
Owner

has2k1 commented Sep 4, 2024

Internally this is kind of there with the geom.draw_legend static methods, but it is not quite meant for the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants