Title: Convert macosx backend to use device_pixel_ratio by QuLogic · Pull Request #21365 · matplotlib/matplotlib · GitHub
Open Graph Title: Convert macosx backend to use device_pixel_ratio by QuLogic · Pull Request #21365 · matplotlib/matplotlib
X Title: Convert macosx backend to use device_pixel_ratio by QuLogic · Pull Request #21365 · matplotlib/matplotlib
Description: PR Summary This was not originally implemented in #19126, but causes some inconsistencies with other backends. This also sets the initial scale as implemented in #18274. I tested this out on MacStadium, but it only has a single display which isn't Retina. If you have a Retina display, you can check that the window is correctly double-sized. If you have two displays, with mixed DPI, then you can check the full functionality. If you create a window on one display, and move it to the other, it should shrink/grow accordingly. A test I do is to start an interpreter, go to interactive mode, and open a figure on each display (on mutter, where your mouse is determines where a window first appears; I don't know if that's the same on macOS). Then you can drag one to the other display, and if resized correctly, they should match each other. Additionally, call fig.set_size_inches(3, 3) on both while on different displays, and bringing them together should be the same size. PR Checklist Has pytest style unit tests (and pytest passes). Is Flake 8 compliant (run flake8 on changed files to check). [n/a] New features are documented, with examples if plot related. [n/a] Documentation is sphinx and numpydoc compliant (the docs should build without error). Conforms to Matplotlib style conventions (install flake8-docstrings and run flake8 --docstring-convention=all). [n/a] New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there). [n/a] API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).
Open Graph Description: PR Summary This was not originally implemented in #19126, but causes some inconsistencies with other backends. This also sets the initial scale as implemented in #18274. I tested this out on MacSta...
X Description: PR Summary This was not originally implemented in #19126, but causes some inconsistencies with other backends. This also sets the initial scale as implemented in #18274. I tested this out on MacSta...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/21365
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2856c2b4-b471-fb5f-9100-f6e2c11cf0f5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DD58:18C7E2:2D4FA66:3D22F67:6A53C06A |
| html-safe-nonce | 67a67f4030fbb47d7ca16da62e05847168237ebaae46ef9e16a11cebe008e77d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDU4OjE4QzdFMjoyRDRGQTY2OjNEMjJGNjc6NkE1M0MwNkEiLCJ2aXNpdG9yX2lkIjoiMjg0MDc5MTMxMDk1MjI4NDI2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 78b385f28fb1e0879cef0ae251879f8a38dc44ea873c010f6f4165101cf75495 |
| hovercard-subject-tag | pull_request:758975763 |
| 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/21365/files |
| twitter:image | https://avatars.githubusercontent.com/u/302469?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/302469?s=400&v=4 |
| og:image:alt | PR Summary This was not originally implemented in #19126, but causes some inconsistencies with other backends. This also sets the initial scale as implemented in #18274. I tested this out on MacSta... |
| 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