Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Call Refresh on FigureCanvasWxAgg.draw#30893
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Conversation
This fixes a bug in which some widgets are not redrawn under wayland.
newville commentedDec 23, 2025
@hydrocat Thanks for looking into this. Also: should this |
This fixes a bug in which some plots are not redrawn under wayland.
PR summary
Why is this change necessary?
What problem does it solve?
Under wayland and wxwidgets, the canvas was only being redraw after user interaction. Programmatic updates from code, such as a background task, would somehow, not trigger a plot redraw.
What is the reasoning for this implementation?
Sorry, not much reasoning. I followed the code path and sprinkled what I thought could work. The best I can think of is that wxwidgets is not being notified of the need to repaint the canvas.
I tried to find a way to force redraw of the plot canvas in wxWidgets backend. This place seems to fix it.
Running a demo script with
GDK_BACKEND=x11 python demo.pyfixes it too, but then it is not using wayland.PR checklist