Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Improper scaling on low-res display when a hi-res display is also present on the system #9062

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

Closed
burnpanck opened this issue Aug 20, 2017 · 9 comments

Comments

@burnpanck
Copy link

burnpanck commented Aug 20, 2017

Bug report

Bug summary

This is a follow up on #8061, which was closed in #8931. That PR resolves updating the figure bounds when the figure is moved between displays with different resolutions. However, the issue persists that figures on the low-res display have way too large line widths and text sizes when a retina screen is present.

Matplotlib version

  • Operating System: OS X 10.12.6
  • Matplotlib Version: 2.0.2
  • Python Version: 3.6.1
  • Other Libraries: Qt

Screen shots
The following two screenshots are taken from the same window, after moving it on either of my two screens.

On the MacBook Pro's retina screen:
on hi-res display

On the additional 2k 27in screen:
on lo-res display

[TAC edited to fix xref]

@tacaswell
Copy link
Member

Can you include some screenshots? I do not really understand the issue (and do not have a mac to test on).

@tacaswell tacaswell added this to the 2.1.1 (next bug fix release) milestone Aug 21, 2017
@tacaswell
Copy link
Member

@burnpanck Can you try with current master?

@tacaswell
Copy link
Member

attn @astrofrog can you reproduce this?

@dstansby dstansby self-assigned this Aug 29, 2017
@dstansby
Copy link
Member

Will check this out when I have my Macbook to hand

@astrofrog
Copy link
Contributor

I'm traveling but will try and test this in a few days

@dstansby
Copy link
Member

Hmm, I don't think I'm seeing this on the latest master branch. All I'm doing is

import matplotlib
matplotlib.use('Qt5Agg')
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
ax.scatter(1, 1)
plt.show()

and then moving between a retina and low-res screen, and everything seems to scale nicely. Let me know if there's other code I could try out.

@dstansby dstansby removed their assignment Aug 31, 2017
@burnpanck
Copy link
Author

burnpanck commented Sep 1, 2017

I see, I'll therefore give it a shot with latest master too! Sorry for not doing that right away.

@tacaswell tacaswell modified the milestones: 2.1.1 (next bug fix release), 2.2 (next feature release) Oct 9, 2017
@astrofrog
Copy link
Contributor

@burnpanck - are you still seeing this issue with Matplotlib 2.2? (it should be fixed)

@burnpanck
Copy link
Author

No, I don't see the issue anymore either. I'll close the issue therefore. Thanks for all the good work!

@dstansby dstansby modified the milestones: needs sorting, v2.2.0 May 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants