Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f5c146d

Browse files
authored
Merge pull request #6384 from efiring/showraise
ENH: Figure.show() raises figure with qt backends
2 parents 2bc6b59 + 61fd0be commit f5c146d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/backends/backend_qt5.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,8 @@ def resize(self, width, height):
495495

496496
def show(self):
497497
self.window.show()
498+
self.window.activateWindow()
499+
self.window.raise_()
498500

499501
def destroy(self, *args):
500502
# check for qApp first, as PySide deletes it in its atexit handler

0 commit comments

Comments
 (0)