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

Clip tree to improve visibility of axes #1383

Merged
merged 2 commits into from
Sep 7, 2021
Merged

Clip tree to improve visibility of axes #1383

merged 2 commits into from
Sep 7, 2021

Conversation

jameshadfield
Copy link
Member

@jameshadfield jameshadfield commented Jul 28, 2021

This (essentially) clips branches, tips and grids to the range of the
{x,y} scales in order to prevent branches / tips from obscuring the axes

This works well on the scatterplots I've thrown at it, but a bit more testing is needed. I haven't tested the slowdown (if any) which I'll do before merging.

The display of y-axis tick labels is another area of improvement to make for scatterplots

Maximizes the amount of space available for rendering, whilst still
allowing axes labels as needed. Moving the `margins` definitions
into `mapToScreen()` makes them easier to reason with.
This (essentially) clips branches, tips and grids to the range of the
{x,y} scales in order to prevent branches / tips from obscuring the axes

The clipping of grid lines in radial view is not perfect here.
@jameshadfield jameshadfield temporarily deployed to auspice-clip-tree-cmyp3pnld64g July 28, 2021 06:30 Inactive
@jameshadfield
Copy link
Member Author

Merging after further testing

@jameshadfield jameshadfield merged commit 8fdbb23 into master Sep 7, 2021
@jameshadfield jameshadfield deleted the clip-tree branch September 7, 2021 08:46
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.

1 participant