Skip to content

matplotlib selector widget is not visible with blitting and wxpython #11425

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
tavin opened this issue Jun 12, 2018 · 9 comments
Closed

matplotlib selector widget is not visible with blitting and wxpython #11425

tavin opened this issue Jun 12, 2018 · 9 comments
Assignees
Labels
GUI: wx status: closed as inactive Issues closed by the "Stale" Github Action. Please comment on any you think should still be open. status: inactive Marked by the “Stale” Github Action

Comments

@tavin
Copy link

tavin commented Jun 12, 2018

Bug report

The following code example uses the RectangleSelector widget, so that we should see a continuously updated rectangular patch over the plot. However, nothing can be seen, unless we set useblit=False.

Code for reproduction

#!/usr/bin/env python3

import matplotlib
from matplotlib.widgets import RectangleSelector

if __name__ == '__main__':
    matplotlib.use('wxagg')
    import matplotlib.pyplot as plt
    figure = plt.figure()
    rect = RectangleSelector(figure.gca(), (lambda e1, e2: print(e1, e2)), useblit=True)
    plt.show()

Matplotlib version

  • Operating system: ubuntu 17.10
  • Matplotlib version: 2.2.2
  • Matplotlib backend: wxagg
  • Python version: 3.6.3
  • Other libraries: wxpython 4.0.1

Everything was installed from virtualenv + pip.

@lkjell
Copy link
Contributor

lkjell commented Jun 24, 2018

Could you check with latest wxpython 4.0.2 and matplotlib git version? It appears to work here.

@anntzer
Copy link
Contributor

anntzer commented Jun 26, 2018

Works for me with wx 4.0.1 and matplotlib 2.2.2 or git HEAD.

@tavin
Copy link
Author

tavin commented Aug 13, 2018

I've tried with wxpython 4.0.3 and both matplotlib 2.2.3 and matplotlib git head. I'm still seeing the bug. Perhaps it has something to do with ubuntu.

@anntzer
Copy link
Contributor

anntzer commented Aug 14, 2018

Perhaps #10417, attn @DietmarSchwertberger?

@DietmarSchwertberger
Copy link
Contributor

@tavin: are you using X or Wayland? Please check with: $ echo $XDG_SESSION_TYPE

$ echo $XDG_SESSION_TYPE
wayland

@tavin
Copy link
Author

tavin commented Aug 14, 2018

wayland yes @DietmarSchwertberger

@DietmarSchwertberger
Copy link
Contributor

OK, I will have a look and start a Wayland compatible implementation. I can start earliest next week, though.

@tavin : as a workaround, you may select X from the login screen: https://askubuntu.com/questions/961304/how-do-you-switch-from-wayland-back-to-xorg-in-ubuntu-17-10

@DietmarSchwertberger
Copy link
Contributor

DietmarSchwertberger commented Aug 26, 2018

@tavin : I have just submitted a PR #11944 to fix the Wayland issues. Maybe you can check whether this fixes your problems.

@tacaswell tacaswell modified the milestones: v3.1.0, v3.2.0 Mar 18, 2019
@tacaswell tacaswell modified the milestones: v3.2.0, needs sorting Sep 10, 2019
@github-actions
Copy link

github-actions bot commented May 8, 2023

This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!

@github-actions github-actions bot added the status: inactive Marked by the “Stale” Github Action label May 8, 2023
@github-actions github-actions bot added the status: closed as inactive Issues closed by the "Stale" Github Action. Please comment on any you think should still be open. label Jun 7, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI: wx status: closed as inactive Issues closed by the "Stale" Github Action. Please comment on any you think should still be open. status: inactive Marked by the “Stale” Github Action
Projects
None yet
Development

No branches or pull requests

5 participants