Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Deprecate LocatableAxes from toolkits#10403
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
9743d47
toe994a5f
CompareI would rather push this to 3.0 (hoping to tag 2.2RC1 this weekend....only a week late) |
I haven't looked in detail, but I will be glad to see this go in whenever it does, and the duplication go away. |
e994a5f
to2805e5c
CompareUpdated deprecation messages to say 3.0 instead of 2.2. |
2805e5c
to6dfa3dd
CompareRebased due to conflicts. These files are messy, so it would be nice to get this in quicker to reduce conflicts. |
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 seems low-risk; let's get it in.
@anntzer or@dopplershift, perhaps one of you could have a look and merge this if it looks OK, so it doesn't have to be rebased again. |
I'm not even close to knowing enough about axes_locator to decide whether the functionality is indeed duplicated or not. |
Mainly you can look at the |
if 'sharex' in kwargs and 'sharey' in kwargs: | ||
raise ValueError("Twinned Axes may share only one axis.") | ||
ax2 = type(self)(self.figure, self.get_position(True), *kl, **kwargs) | ||
ax2.set_axes_locator(self.get_axes_locator()) |
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.
The baseAxes._make_twin_axes
is missing this locator-copying line--maybe that is a bug.
It looks to me like we need to either support I'm not sure which would be best; it's a little odd to have an attribute in |
There are times when@leejjoonrecommended using |
Ooh, this fell through the cracks. Any chance we can resurrect? |
I can rebase; depends on@efiring's thoughts. |
My opinion is highly biased as I am the one who introduced the axes_locator. But I would like to see it stays. While I understand this is underused, this makes certain things a lot easier (although may not relevant for normal users). Also,#11026 requires axes_locator. |
This doesn't remove it though; it deprecates the one in axes_grid for the one in the main library, which appears to be what#11026 uses. |
Yes. I was just expressing my opinion to what@efiring said, and I was referring to axes_locator in the base. I am happy with the axes_grid becoming deprecated. |
I'm more than a little confused--I haven't looked at this for a while, it deals with functionality I am not familiar with, and so the spinup in trying to come back to it is considerable.@leejjoon, it's good to hear from you--but could you be more explicit with respect to this PR? Do you favor it as is (after a rebase), or with minor changes, or major changes, or not at all? |
I am in favor of this PR. In fact, I think we can actually remove |
6dfa3dd
to36e3701
CompareThis is provided for backwards-compatibility, so point directly to theimplementations instead of the compatibility location.
All its functionality is provided by the matplotlib.axes.Axes class nowso it does not need to exist as all alternative Axes classes derive fromthe main one.
It's similar to LocatableAxesBase and provided in base Axes classes.
It's now no longer used for anything, since maxes.Axes is locatablealready.
36e3701
to7421b0e
CompareOK, rebase is done. |
Uh oh!
There was an error while loading.Please reload this page.
PR Summary
LocatableAxes
in the toolkits provides stuff likeget_axes_locator
, but these are provided in the baseAxes
class. So deprecate all of the classes and related functions. Additionally, remove all code from the deprecatedaxes_grid
, and point it to the split apart implementations.PR Checklist