-
Notifications
You must be signed in to change notification settings - Fork 2
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
[FEATURE] Gutters for Swarmplots #9
Conversation
Hm. I also realized after implementing this that it currently only works with the horizontal direction. I'll have to come back to implement the other direction at some point soon. |
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.
Hey! This code looks good. One question that comes to mind: do we define a gutter in pixel space or data space? They both have advantages but data space seems a bit easier to tune. Either could be done.
Hey @asinghvi17 , here's some thoughts after applying your suggestions:
I prefer data space as I think this would be more intuitive to explain in the documentation to new folks working with beeswarm. Pixel space I think would get in the way of folks who "just want to plot a beeswarm".
In terms of an API, what are you imagining when you are talking about overloading and neatly solving issues? I wasn't completely following this train of thought. Thanks Anshul! Let me know if you have any questions! ~ tcp 🌳 |
Thanks a lot Jacob! The implementation looks really good now! I think we just need to account for I get what you mean about gutters making more sense in dataspace, and agree. My thought on pixelspace was that one could define In terms of API for gutterize - I was thinking something like this: function gutterize!(point_buffer, algorithm::BeeswarmAlgorithm, gutter, side, direction)
# implementation here
end and then we wrap the changes you made here into this function. |
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.
I'll put some test cases together and upstream them!
Untested as of now but will push tests shortly.
Brilliant @asinghvi17 ! Let me know when you are done tweaking this and then I can jump back on with implementing some more of what you are thinking. Were you going to implement |
No worries, I can get it in :) |
Hey @asinghvi17,
Here's a rough cut implementation of adding gutters to the swarm plotting algorithm! It is very naive right now so curious about how we could optimize it a bit better.
Closes #8
Cheers!
~ tcp 🌳