-
Notifications
You must be signed in to change notification settings - Fork 39
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
Point extents func to fit marker size + stroke #211
base: main
Are you sure you want to change the base?
Conversation
Note: Since the regression test compares against reference plots, I'm not sure this commit is truly failing, since it is suggesting a change that should change many of the plots by slightly extending the domain range. But I'm not very familiar with this testing method. |
@eaton-lab - I like where this is headed, but this isn't just a case where the reference images need to be updated, the code is failing at render time ... to take one example:
After poking at it a bit, it looks like Cheers, |
@tshead2 But, I think some recent change on main has broken the regression testing framework. It is failing during |
Yeah, I'm testing the pull-request locally right now. The errors look more like a server offline or something. Cheers, |
Hey @tshead2 , Let me know what you think of these regression tests. It seems the only differences are very small changes in Deren |
Closing-and-reopening this PR to trigger re-running the tests. |
I updated the
.extents()
for Point Marks to return extents of its markers asmsize / 2 + stroke
, unless marker type is "rNxM", where it gets height and width from the marker. I'm not sure if there are other non-symmetric markers that need to be accommodated. I've had something like this implemented in toytree for a while and it seems to work well. Thought it would be good to share. I believe this addresses Issue #164BEFORE
AFTER
CONFIRMATION
This shows the new extents seem quite accurate by suppressing the padding and margin: