8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fba5d15 commit 0e4cd88Copy full SHA for 0e4cd88
lib/matplotlib/backends/backend_gtk3.py
@@ -391,7 +391,11 @@ def show(self):
391
# show the figure window
392
self.window.show()
393
self.canvas.draw()
394
- if mpl.rcParams['figure.raise_window']:
+ # If this is called by a callback early during init, self.window (a
395
+ # GtkWindow) may not have an associated low-level GdkWindow
396
+ # (self.window.get_window()) yet, and present() would crash -- hence
397
+ # the additional check.
398
+ if mpl.rcParams['figure.raise_window'] and self.window.get_window():
399
self.window.present()
400
401
def full_screen_toggle(self):
0 commit comments