Thanks to visit codestin.com Credit goes to github.com
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 5a1b5fd commit cd6d2caCopy full SHA for cd6d2ca
lib/mplcairo/qt.py
@@ -49,6 +49,17 @@ def blit(self, bbox=None): # matplotlib#17478 (<3.3).
49
# See above: we always repaint the full canvas.
50
self.repaint(self.rect())
51
52
+ def print_figure(self, *args, **kwargs):
53
+ # Similar to matplotlib#26309: Qt may trigger a redraw after closing
54
+ # the file save dialog, in which case we don't want to redraw based on
55
+ # the savefig-generated renderer but the earlier, gui one.
56
+ lrc = self._last_renderer_call
57
+ self._last_renderer_call = None, None
58
+ try:
59
+ super().print_figure(*args, **kwargs)
60
+ finally:
61
+ self._last_renderer_call = lrc
62
+
63
64
@_BackendQT.export
65
class _BackendQTCairo(_BackendQT):
0 commit comments