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

Discrete key issue #1344

Closed
Mattriks opened this issue Nov 10, 2019 · 0 comments · Fixed by #1349
Closed

Discrete key issue #1344

Mattriks opened this issue Nov 10, 2019 · 0 comments · Fixed by #1349
Labels

Comments

@Mattriks
Copy link
Member

In this example, the key with 3 columns is not drawable:

datas = Gadfly.Data(color=rand(["A","B","C","D"], 100))
scales = [Scale.color_discrete(levels=["A","B","C","D"])]
aes = Scale.apply_scales(scales, datas)
theme1 = Theme(key_max_columns=4)
guides = render(Guide.colorkey(title="Colors"), theme1, aes[1])[1]
# draw(PNG(), hstack(guides.ctxs[1:4]...)) # fails
draw(PNG(), hstack(guides.ctxs[[1,2,4]]...)) # works

discretekeys

I'll submit a PR to fix this.

@tlnagy tlnagy added the bug label Nov 13, 2019
Mattriks added a commit to Mattriks/Gadfly.jl that referenced this issue Nov 17, 2019
@Mattriks Mattriks mentioned this issue Nov 17, 2019
3 tasks
Mattriks added a commit to Mattriks/Gadfly.jl that referenced this issue Nov 18, 2019
bjarthur added a commit that referenced this issue Nov 18, 2019
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.

2 participants