-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Axes creation seems to reuse an old one instead of creating a new one #9024
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
Comments
It's by design--an old design that none of us like. |
How is it dealt with for twinning?
…On Aug 11, 2017 8:32 PM, "Eric Firing" ***@***.***> wrote:
It's by design--an old design that none of us like.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#9024 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARy-Aos5RoWgNrJxE7SNvK_l03XWh0-ks5sXPKpgaJpZM4O1Pzi>
.
|
@efiring can we change that old design decision for a future release? |
I don't see any reason why not. There is some movement in that direction. See #7377, especially towards the end of the comment sequence. Maybe we could even get @anntzer's suggested deprecation upon key collision into 2.1, and dump the bad old behavior entirely for 2.2. Comments, @tacaswell? |
To me, these are independent; the suggested deprecation and removal is simply getting rid of a misfeature that has no compelling use case. It has nothing to do with laying out multiple axes. |
@efiring I more or less agree with this, though I suppose with my feature suggestion one of the open questions is "what will the user-facing API look like", so there might be some overlap there. That said, I think it's easy enough to say early on that whatever the user-facing API looks like, it doesn't need to include this sort of dubious behavior. |
i don't foresee the commands to place an axes as changing in any user facing way in the changes I was going to make. If someone hard places and axes like this I'd assume they don't want it to participate in any layout. |
I have a patch that deprecates the behavior (warn on collision) but will wait for #9029 (or similar) to be merged first before making a PR. |
On the phone call we decided to go the 'deprecate' route for 2.1. |
Fixed with #9037 |
As a side note, in reply to #9024 (comment) (how was that dealt with when twinning) it appears that twinning works because the second axes is created with the sharex=firstaxes additional kwarg, which thus does not trigger the bad behavior :) |
ah-ha! now that makes sense!
…On Wed, Aug 30, 2017 at 11:28 PM, Antony Lee ***@***.***> wrote:
As a side note, in reply to #9024 (comment)
<#9024 (comment)>
(how is that dealt with when twinning) twinning happens to work because the
second axes is created with the sharex=firstaxes additional kwarg, which
thus does not trigger the bad behavior :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#9024 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARy-HGgOT6a_FXv-xbezyBHDjid4pxgks5sdihIgaJpZM4O1Pzi>
.
|
Bug report
Bug summary
It appears that when plt.axes() is called, if the parameters are identical to a previous call, that old axes is reused instead of creating a new one. I don't know if this is by design or not but it makes the behavior very unexpected.
Code for reproduction
Actual outcome
Two buttons appear, one with "1" and "2" on top of each other and the other with "3" in it.
Expected outcome
Three buttons appear: "1", "2", and "3" horizontally.
Matplotlib version
The text was updated successfully, but these errors were encountered: