Permit sharing y-labels on the right spine, x-labels on the top spine #183
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR will expand the axis-sharing feature so that it works with tick labels on the left, right, bottom or top spines, not just the left/bottom spines.
Figure(..., sharex=sharex)
will share groups of x-axes whose tick labels are on the bottom or top with the bottommost and topmost subplots (respectively), andFigure(..., sharey=sharey)
will share labels from groups of y-axes whose tick labels are on the left or right with the leftmost and rightmost subplots (respectively). This will address #205.This will also allow me to tackle #79 (and #178). It is much more common to need longitude/latitude labels on the right and top spines for geographic projections than for Cartesian projections (e.g. this Lambert conformal example requires labels on the top spine for the 60 degree and 80 degree latitude lines, because they don't intersect any other spine). This is a major reason reason I had not tried to implement "axis sharing" for geographic plots yet.
Just wanted to open a PR because it's one of the more important changes to proplot needed before v1. May not have a chance to tackle it for several months.