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

Align first major grid circle in radial view #1693

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

victorlin
Copy link
Member

@victorlin victorlin commented Sep 1, 2023

Compare radial tree view of Zika dataset before and after.

Description of proposed changes

When plotting the first major grid, its position value can be below the domain of the x-axis. I'm not sure why. To reduce the effects of this, impose a lower limit on grid positions.

Previously, these situations would render a first major grid circle offset from the center. With this change, it draws a point at the actual center.

The text labels are similarly adjusted.

Related issue(s)

Prompted by a discussion post.

Checklist

When plotting the first major grid, its position value can be below the
domain of the x-axis. I'm not sure why. To reduce the effects of this,
impose a lower limit on grid positions.

Previously, these situations would render a first major grid circle
offset from the center. With this change, it draws a point at the actual
center.

The text labels are similarly adjusted.
@victorlin victorlin self-assigned this Sep 1, 2023
@nextstrain-bot nextstrain-bot temporarily deployed to auspice-victorlin-fix-r-st5x6f September 1, 2023 21:52 Inactive
@victorlin victorlin marked this pull request as ready for review September 1, 2023 22:03
@jameshadfield
Copy link
Member

Closes #1384

@victorlin victorlin merged commit 8111de1 into master Sep 5, 2023
20 checks passed
@victorlin victorlin deleted the victorlin/fix-radial-centering branch September 5, 2023 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

3 participants