-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Improve Conectionstyle Demo #13835
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
Improve Conectionstyle Demo #13835
Conversation
I noticed that the current version on master lost the right spines while in the current online docs In case this change is expected (might actually be due to #12716 ), I'd suggest to modify |
302a776
to
83acb12
Compare
Even with |
I don't think this is a bug in the margin calculation. It's more that now that the axes extent is calculated correctly you see the same as you would see in a case where you have the axes span the entire figure:
So the underlying question is: Would a line that is at the edge of the figure need to be stamped to pixels by a different set of rules than other lines within the figure? Since I don't expect there to an answer to this in the short term, my suggestion would still be to increase the padding for this example such that it looks good. After all, |
@timhoffm the bbox calculation is correct. As @ImportanceOfBeingErnest says, the pixel stamping is putting the line on either side of that bbox depending on how many pixels are in the figure. I don’t think there is anything the bbox calculation that can take that into account because it is backend dependent. That this “worked” before was because the axes bbox returned a random margin around the axes. I’d be against going back to that buggy implementation, and agree that adding a small pad is the way to fix this problem. |
83acb12
to
667b23e
Compare
Ok, added a small padding. |
667b23e
to
a313f6e
Compare
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. I will not merge since there are test failures I do not understand.
Also, does this need a milestone?
Appveyor py37 is failing for some time with Anyway, it's unrelated to this PR. Yes, it needs a milestone: Canonically, it would be 3.1.1, but simple doc backports are still accepted for 3.1.0. I'm not setting this to 3.1.0 to not hold up 3.1.0 with open PRs. But whoever merges this before 3.1.0 is out, can set that milestone before merging. |
a313f6e
to
e7d0fbe
Compare
…835-on-v3.1.x Backport PR #13835 on branch v3.1.x (Improve Conectionstyle Demo)
PR Summary