diff --git a/examples/event_handling/path_editor.py b/examples/event_handling/path_editor.py index 727712609d34..1822e4fb68f3 100644 --- a/examples/event_handling/path_editor.py +++ b/examples/event_handling/path_editor.py @@ -74,7 +74,7 @@ def draw_callback(self, event): self.background = self.canvas.copy_from_bbox(self.ax.bbox) self.ax.draw_artist(self.pathpatch) self.ax.draw_artist(self.line) - self.canvas.blit(self.ax.bbox) + # Do not blit here, because this happens before the screen update def pathpatch_changed(self, pathpatch): 'this method is called whenever the pathpatchgon object is called'