You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How avoid PyQt5 to crash when I move Qslitter to the edge with a matplotlib figure in it? #17608
I have two matplotlib figures inside a QSplitter.
When I move the Splitter to the edge (the figure disapear then), the code crashes.
the error I get is
Traceback (most recent call last):
File "C:\Python36\lib\site-packages\matplotlib\backends\backend_qt5.py", line 397, in resizeEvent
self.figure.set_size_inches(winch, hinch, forward=False)
File "C:\Python36\lib\site-packages\matplotlib\figure.py", line 902, in set_size_inches
raise ValueError(f'figure size must be positive finite not {size}')
ValueError: figure size must be positive finite not [0. 6.12]
This wasn't an issue before, when only one of the two side of the Qsplitter was on the screen, my code did not crash. When I pull the splitter to the center again, the figure reappear properly.
Activity
QuLogic commentedon Jun 10, 2020
Closing as duplicate of #17093.