Title: Fix occasional misalignment in reported mouse position by ayshih · Pull Request #32038 · matplotlib/matplotlib · GitHub
Open Graph Title: Fix occasional misalignment in reported mouse position by ayshih · Pull Request #32038 · matplotlib/matplotlib
X Title: Fix occasional misalignment in reported mouse position by ayshih · Pull Request #32038 · matplotlib/matplotlib
Description: PR summary Due to floating-point precision, a figure may self-report a height that is not exactly an integer, and the consequence is a bug for GUI backends where the reported Y position of the mouse may be off by a pixel. This PR fixes the bug in various backends by immediately rounding the figure height rather than letting it be truncated later. Fixes #27570 AI Disclosure No AI was used PR checklist "closes #0000" is in the body of the PR description to link the related issue new and changed code is tested Plotting related features are demonstrated in an example New Features and API Changes are noted with a directive and release note Documentation complies with general and docstring guidelines
Open Graph Description: PR summary Due to floating-point precision, a figure may self-report a height that is not exactly an integer, and the consequence is a bug for GUI backends where the reported Y position of the mou...
X Description: PR summary Due to floating-point precision, a figure may self-report a height that is not exactly an integer, and the consequence is a bug for GUI backends where the reported Y position of the mou...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/32038
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3e545f4e-a530-8f30-43c2-a8b9df8ee096 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 908C:333E4B:DE4DAA:12A5141:6A54144B |
| html-safe-nonce | 8050943223f45a04df45ef91164640a5b124fc2f908dbfc24dbc3a950fef4d58 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDhDOjMzM0U0QjpERTREQUE6MTJBNTE0MTo2QTU0MTQ0QiIsInZpc2l0b3JfaWQiOiI3NDMwNTIyMDY2NDQ3ODk3Njc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 23cb641f4a47be671ac7ab8a295cf4c19e8efd8d46941bc7e65830fd8116469d |
| hovercard-subject-tag | pull_request:4034067669 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/matplotlib/matplotlib/pull/32038/files |
| twitter:image | https://avatars.githubusercontent.com/u/991759?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/991759?s=400&v=4 |
| og:image:alt | PR summary Due to floating-point precision, a figure may self-report a height that is not exactly an integer, and the consequence is a bug for GUI backends where the reported Y position of the mou... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width