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

Inconsistent color in legend when using paint_a/paint_b/paint_c #867

Closed
OLarionova-HORIS opened this issue Aug 31, 2023 · 0 comments
Closed

Comments

@OLarionova-HORIS
Copy link
Collaborator

from lets_plot import *
LetsPlot.setup_html()

d = {
    'x': [1, 2, 3, 4, 5],
    'y': [0, 0, 0, 0, 0],
    'g': ['a', 'b', 'c', 'd', 'e'],
    's': [1, 2, 3, 4, 5]
    
}

color_by_aes = ggplot(d) \
    + geom_point(aes(color='g', x='x', y='y', size='s')) \
    + ggtitle("geom_point(aes(color='g', ...))")

color_by_paint = ggplot(d) \
    + geom_point(aes(paint_a='g', x='x', y='y', size='s'), color_by='paint_a') \
    + ggtitle("geom_point(aes(paint_a='g', ...), color_by='paint_a')")

gggrid([color_by_aes, color_by_paint])
Screenshot 2023-08-31 at 17 07 47
@IKupriyanov-HORIS IKupriyanov-HORIS changed the title Color in legend when using paint_a/paint_b/paint_c Inconsistent color in legend when using paint_a/paint_b/paint_c Aug 31, 2023
@alshan alshan closed this as completed Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants