-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Take into account inside labels of overlaid axes in when hiding labels on the counter axis #5589
Conversation
Playing with the codepen, I found that panning the x-axis didn't hide the x-ticklabels when they were below the y-ticklabels... ? I thought we'd fixed this in #5582 ? |
Good catch. We did fix it and it is now working as expected without overlaid axis. |
This PR is ready for review. |
@archmoj a few issues when I'm playing with this, using the
None of these behaviors happen with only one set of inside labels on a given subplot; in fact if I remake this mock with either |
Please note that the axes have specific ranges and they are not |
The |
What's the point of that mock then? Anyway the second point stands, I can't get it to autorange correctly via GUI interactions no matter what I do. |
I agree. That looks like a separate bug outside the scope of this PR. |
Ah, got it! Sorry, I misunderstood the purpose here. Yes, please consider autorange a separate bug, which indeed is independent of how many inside-labeled axes are drawn on the subplot: if you start out autoranged everything is fine, but if you start with defined ranges or if you start autoranged and then zoom, doubleclicking will do strange things (and will toggle between two states even if you started out autoranged) |
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.
💃 This looks good re: label visibility, apologies for the confusion.
Addressing #5402.
The autorange padding part was addressed in #5586.
This PR fixes the hiding part.
Demo
@plotly/plotly_js