-
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
Guide.shapekey #1156
Guide.shapekey #1156
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1156 +/- ##
==========================================
+ Coverage 87.06% 87.37% +0.31%
==========================================
Files 33 36 +3
Lines 3981 4063 +82
==========================================
+ Hits 3466 3550 +84
+ Misses 515 513 -2
Continue to review full report at Codecov.
|
this will be great to have. any thoughts on legends for |
See list of Future PRs above - Note that I'm planning to make all |
@Mattriks #1116 is ready to merge. but there will be lots of conflicts with this PR regarding your splitting of also, if you think you'll be ready to merge this PR soon, i could wait to merge mine until afterwards. could work on seaborn-style thumbnails in the meantime. let me know. |
47aae36
to
20e030a
Compare
Rebased on master. The tests all pass locally for me. |
lgtm except reformatting the docs to the new "gallery format". let's get this merged before 0.7! |
I've updated the docs now, and ran the regression tests. There are diffs in any testfile that is prefixed "point_shape" or "point_*_shape" i.e. a shape key is added as expected. Tests passed for Julia 0.6 on Travis. |
thanks! looking forward to "Future PRs" you list in the OP. |
if the length of the shape aesthetic is one would it make sense to not show the shape key? see http://gadflyjl.org/latest/gallery/shapes.html |
Yes, I'll have to fix that, so it is consistent with the behaviour of the |
@Mattriks what's the best way to fix the shape legend appearing when the length of |
Either:
I also started working on |
great to hear about ideally it'd be best if we could fix this regression and tag a new point release before introducing any breaking changes like that in #1175. |
@Mattriks any chance you'll have time in the near future to get the shape legend to not appear when the length of the shape aesthetic is just one? would be nice to get this fixed before we drop support for julia 0.6. thanks. |
NEWS.md
squash
'ed orfixup
'ed junk commits with git-rebaseGuide-ageddon
This is the first step in
Guide-ageddon
(and closes #1133). This PR implements:Guide.shapekey(title=, labels=, pos=)
shape
andcolor
are mapped to the same variable name.Theme(key_swatch_color=)
, useful ifshape
andcolor
are mapped to different variables.To do in this PR:
Scale.color_discrete
, ifshape==color
, and you changeGuide.shapekey(levels=)
(as in plot b above)Future PRs (in no particular order):
Guide.colorkey
Guide.sizekey
,Guide.linekey
Guide.manual_color_key
withGuide.manual_key