-
Notifications
You must be signed in to change notification settings - Fork 251
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
improve warning when nonunique colors used with manual_color_key #1172
improve warning when nonunique colors used with manual_color_key #1172
Conversation
Looks like tests are segfaulting on Travis. Not sure why. Tests are also segfaulting on Gadfly.jl/test/testscripts/issue1125.jl Line 23 in f922f4d
|
the travis errors are similar to #1166. i wonder whether it would happen with julia 0.6.2. i can confirm the segfault with |
src/guide.jl
Outdated
for (c, l) in zip(colors, labels) | ||
if c in keys(labeldict) | ||
error("Colors should not appear more than once") | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haskey(labeldict,c) || error()
would be more succint. otherwise, lgtm once CI passes.
It segfaults on |
#1123 might be related |
worth noting that |
JuliaLang/julia#27607 seems to have the same error, and the fix is scheduled to be backported to 0.6.4. |
749527e
to
10534a8
Compare
It looks like tests on v0.6 are passing on master again so I've updated this PR and hopefully CI passes this time. |
Looks like they're passing now! |
fixes #1170