-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
"round_numbers" axis limits + axis("equal") sometimes sends artists out of axes limits. #14898
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
The problem with this example goes beyond |
Oh, that's funny. Indeed, the 0-1 behavior is reproducible even with the default style. |
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help! |
The exact repro I posted above is now fixed due to #19214, which is unrelated; the underlying issue is still present though: from pylab import *
from matplotlib import style; style.use("classic")
x = [1.3732138971696957, 2.7835520805254377]
y = [1.055418483548192, 2.614880231147507]
plt.figure(figsize=(8, 8))
plt.plot(x, y, "o-", clip_on=False)
plt.axis('equal')
plt.show() |
Bug report
Bug summary
The following is slightly modified from test_axes.py::test_pie_frame_grid, with only the center of the topmost pie slightly modified:
This yields

which is clearly less than great...
Matplotlib version
print(matplotlib.get_backend())
): anyThe text was updated successfully, but these errors were encountered: