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

Skip to content

Commit 34513eb

Browse files
author
James Evans
committed
Edited so that a double draw does not occur.
svn path=/trunk/matplotlib/; revision=5031
1 parent 4165b72 commit 34513eb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/backends/backend_qt4agg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def draw( self ):
130130

131131
if DEBUG: print "FigureCanvasQtAgg.draw", self
132132
self.replot = True
133-
self.update()
133+
FigureCanvasAgg.draw(self)
134134

135135
def blit(self, bbox=None):
136136
"""

lib/matplotlib/backends/backend_qtagg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def draw( self ):
135135

136136
if DEBUG: print "FigureCanvasQtAgg.draw", self
137137
self.replot = True
138-
self.repaint( False )
138+
FigureCanvasAgg.draw(self)
139139

140140
def blit(self, bbox=None):
141141
"""

0 commit comments

Comments
 (0)