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

Legend is broken when using scale_fill_brewer with 'trans' parameter #284

Closed
alshan opened this issue Jan 9, 2021 · 1 comment
Closed

Comments

@alshan
Copy link
Collaborator

alshan commented Jan 9, 2021

Plot without 'trans' parameter:

p + scale_fill_brewer(palette="YlOrBr", direction=-1)

image

Plot with 'trans='

p + scale_fill_brewer(palette="YlOrBr", direction=-1, trans='log10')

image

@alshan alshan added this to the 2021Q2 milestone Mar 26, 2021
@alshan alshan modified the milestones: 2021Q2, 2021Q3 Jun 28, 2021
@alshan
Copy link
Collaborator Author

alshan commented Jul 8, 2021

data = dict (
    x = [v for v in range(10)],
    y = [v for v in range(10)],
    z = [2**v for v in range(10)],
)

(ggplot(data, aes('x', 'y')) + geom_point(aes(color="z"), size=10)
 + scale_color_brewer(palette="YlOrBr", trans="log10")
)

image

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

1 participant