-
Notifications
You must be signed in to change notification settings - Fork 57
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
HiDPI / Retina screens cause redraw issues leading to a singular matrix error #286
Comments
I found the problem. Upon a hunch I changed my MacBook's screen to its native resolution and the problem disappears. So it seems like HiDPI and / or Retina screens cause some issue with matplotlib. I guess googling into this direction might help you fixing this bug. Somebody with a HiDPI screen (e.g. Surface Pro) should test this on Windows and Linux as well... For the other poor souls on retina Macs: Use this App to switch to the highest / native resolution: http://displaymenu.milchimgemuesefach.de |
Woah, thanks for digging into the problem and finding the issue! Off the top of my head the only thing I can think of is to be heavy-handed and deleting the plot object when a redraw is requested. |
I guess we could try to isolate the issue within matplotlib and than bug their developers... |
A temporary workaround would be to disable redraw when the 'Plot' checkbox is unchecked. |
I am all for this, but don't really have the time to dive that deep into matplotlib.
I agree, and depending on the time required to draw the plot we might even 'just' delete the plot itself once the user clicks the checkbox. Will look into the temporary fixes in this direction. |
Hey @nheeren, if you have the time could you see if this issue still occurs in the experimental PySide2 refactoring branch? |
@cmutel I assume you use some non-default resolution on your Mac? As a side note: Also others have this issue. When I have an external screen connected and open a new window in the Scholar One system on Firefox, it will also be scaled too small. |
@nheeren and @cmutel: I just wanted to say thanks for reporting these bugs! In the mid-term we may want to get away from matplotlib plots altogether and move towards interactive plots... when I looked around last time, bokeh was an interesting option, but still had an issue with labels (bokeh/bokeh#8169). Other suggestions are welcome. And contributions of course also (thanks @e4BdSBmUzHowFico5Ktn for already looking into this a bit!). |
@nheeren Nope, native (retina) resolution on 2016 MacBook Pro with no external screen. |
What I did:
Unselect PlotDoesn't matterI believe this has to do with the drawing in macOS / Qt. Yesterday it worked fine. I am not sure what changed, except that I had a larger screen plugged in.
Happening in development and stable version.
The text was updated successfully, but these errors were encountered: