| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
A few other tests I should have mentioned (that should only need checking on a Retina display):
|
Sorry, something went wrong.
|
I just tested all of those cases and they all produce the expected output for me. These two PRs work well with the mixed DPI cases for me locally. |
Sorry, something went wrong.
This was not originally implemented in matplotlib#19126, but causes some inconsistencies with other backends. This also sets the initial scale as implemented in matplotlib#18274.
…365-on-v3.5.x Backport PR #21365 on branch v3.5.x (Convert macosx backend to use device_pixel_ratio)
| Back | FazBrowse Home | New Git URL |
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