Skip to content

MacOSX backend: figure is cleared when moving from one screen to another #8387

Closed

Description

@HDembinski

Bug report

Bug summary

A figure created on Mac with the MacOSX backend on one screen gets blank when the figure window is dragged to another screen attached to the same computer.

Code for reproduction

import matplotlib as mpl
mpl.rcParams["backend"] = "MacOSX"
from matplotlib import pyplot as plt

plt.figure()
plt.plot([0,1],[0,1]) # to have some content
plt.show()
# now drag figure from one screen attached to the computer to another screen attached to the computer

Actual outcome

screen shot 2017-03-27 at 13 50 45

Matplotlib version

System: MacOS El Capitan
Matplotlib version: 2.0.0
Python version: 2.7.10 (System Python)

Matplotlib was installed with pip.

Activity

  1. added this to the milestone on Mar 27, 2017
  2. mmckerns commented on Apr 17, 2017

    @mmckerns

    as noted in #8500, the plot "reappears" if you resize the window

  3. HDembinski commented on Apr 20, 2017

    @HDembinski
    Author

    Yes, resizing the window is a workaround, but it leads to loss of exact figure size in pixel (unless you have uncanny marksmanship with the mouse).

  4. tacaswell commented on Apr 20, 2017

    @tacaswell
    Member

    This needs attention from someone who understands the OSX gui framework. It should be simple enough as forceing a re-render when the effective dpi changes.

  5. modified the milestones: , on May 3, 2017
  6. cimarronm commented on May 23, 2017

    @cimarronm
    Contributor

    I cannot seem to reproduce but am running macOS Sierra. @HDembinski, are you able to test with latest OS and still see the issue?

  7. tacaswell commented on May 23, 2017

    @tacaswell
    Member

    I strongly suspect that there are latent DPI scaling related issues in this, possibly put in by my work on qt5 and hi-dpi...

  8. HDembinski commented on May 23, 2017

    @HDembinski
    Author

    @cimarronm I will give it a try tomorrow! I compiled matplotlib myself on Linux before, not on Mac, but hopefully it will work fine.

  9. mmckerns commented on May 23, 2017

    @mmckerns

    @cimarronm: I see the bug on macOS Sierra.

  10. cimarronm commented on May 26, 2017

    @cimarronm
    Contributor

    I was able to reproduce it with v2.0.0 but don't see the issue with the latest master or v2.0.1 so it may have been addressed already. @mmckerns or @HDembinski, can you try with the latest master?

  11. HDembinski commented on May 26, 2017

    @HDembinski
    Author

    I just downloaded and compiled the github master, and it works like a charm now!

  12. tacaswell commented on May 26, 2017

    @tacaswell
    Member

    I have no idea what we changed that would have fixed this....

  13. modified the milestones: , on May 26, 2017
  14. tacaswell commented on May 26, 2017

    @tacaswell
    Member

    Closing as this is reported fixed on master.

  15. HDembinski commented on May 28, 2017

    @HDembinski
    Author

    One more comment: When I initially reported this, I used MacOS El Capitan. Before I tried the latest master, I updated to Sierra. Perhaps it is not a change in matplotlib but a change in the MacOS Version...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions