-
Notifications
You must be signed in to change notification settings - Fork 18
feat: advanced axis sharing refactor + enhancements #256
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
feat: advanced axis sharing refactor + enhancements #256
Conversation
|
I see these as well |
|
OK I lost track of this PR. Sorry. What is the share level for this test? The docs currently say
For the middle panel in each sharing level we should have
|
|
Thanks will have a careful look tomorrow and update you on the details to finalize this PR |
|
So I had to some time to settle back in and ready to pick this up again. I think for the label sharing level, we should change the docs to state that it will share with the outermost labels. For left and bottom labels that would be the leftmost and bottomost, and for top and right it will be topmost and rightmost. Now there are the edgecases where a plot is not flanked directly by another plot. In this case, I think it makes most sense to also add the labels there -- do you agree @beckermr? This would mean that the code and docs would need to reflect this change, which won't affect dense grids but will more complex layouts. |
|
I agree in general unless the labels are duplicated like in the image above. In that case, we should keep only the one that applies to the full plot. This should be what I wrote above. |
|
Ok great will focus on fixing the PR and will ping you again for review. |
These tests fails but require some input on what we allow. We are seeing that the outermost panel now has the ticks turned on. I think this makes sense as the panel belongs to a singular plot, but we may want to return to the old behavior.
Let me know what you think @beckermr |
|
I think for panels we should return to the old behavior. |
|
All green ;-)! |
beckermr
left a comment
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.
One minor thing on a comment, but otherwise LGTM.
docs/subplots.py
Outdated
| # * ``False`` or ``0``: Axis sharing is disabled. | ||
| # * ``'labels'``, ``'labs'``, or ``1``: Axis labels are shared, but | ||
| # nothing else. Labels will appear on the leftmost and bottommost subplots. | ||
| # nothing else. Labels will appear on the outermost plots. This implies that for left, and bottom labels (default) the labels will appear on the leftmost and bottommost subplots |
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.
Let's split this comment across multiple lines.


Rename of #244
One of UltraPlot's most powerful features is the ability to do advanced axis sharing. The current implementation works well for bottom and left label sharing, but failed in sharing labels for top right labels. This PR addresses this problem while at the same time allowing for sharing axes with more complex layouts.