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

Partially address #1409: group with named tuples #1429

Merged
merged 2 commits into from Mar 13, 2018
Merged

Partially address #1409: group with named tuples #1429

merged 2 commits into from Mar 13, 2018

Conversation

piever
Copy link
Member

@piever piever commented Mar 12, 2018

This allows grouping with NamedTuples to give a name to the entries in the legend. For example:

julia> using Plots

julia> using NamedTuples

julia> plot(rand(10), group = @NT(a = rand(Bool,10), b = rand(Bool, 10)))

test

In #1409 this would allow:

@df df plot(:R, :F, group = @NT(L = :L, T = :T), legend=:topleft, marker=:circle, frame=:box, grid=false)

@carstenbauer
Copy link

carstenbauer commented Mar 12, 2018

Maybe put a comma, i.e. a = false, b = true (I forgot this in #1409). Otherwise this looks great! Thanks so much.

@piever piever merged commit 7c257a0 into JuliaPlots:master Mar 13, 2018
@piever piever deleted the names branch March 13, 2018 15:18
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

Successfully merging this pull request may close these issues.

None yet

2 participants