-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Always pass integers to wx.Size. #19052
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
Conversation
Fixes test failure on Python 3.10, https://bugzilla.redhat.com/show_bug.cgi?id=1902382
Why |
(It would be nice to document once and for all how floating-point canvas sizes (which can legitimately occur e.g. with vector backends) are supposed to be handled by backends that only support integer sizes (typically raster backends).) |
Because that's what's already done here: matplotlib/lib/matplotlib/backends/backend_wx.py Lines 505 to 508 in ff15ca9
|
@meeseeksdev backport to v3.3.x |
…052-on-v3.3.x Backport PR #19052 on branch v3.3.x (Always pass integers to wx.Size.)
PR Summary
Fixes test failure on Python 3.10, https://bugzilla.redhat.com/show_bug.cgi?id=1902382
PR Checklist
pytest
passes).flake8
on changed files to check).flake8-docstrings
and runflake8 --docstring-convention=all
).doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).