Permalink
Browse files

mplot3d should call canvas.draw_idle()

  • Loading branch information...
1 parent dd32575 commit 31479e682b17a0ae355bae318c3b761209386a24 @mdboom committed Oct 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/mpl_toolkits/mplot3d/axes3d.py
View
4 lib/mpl_toolkits/mplot3d/axes3d.py
@@ -1147,7 +1147,7 @@ def _on_move(self, event):
self.elev = art3d.norm_angle(self.elev - (dy/h)*180)
self.azim = art3d.norm_angle(self.azim - (dx/w)*180)
self.get_proj()
- self.figure.canvas.draw()
+ self.figure.canvas.draw_idle()
# elif self.button_pressed == 2:
# pan view
@@ -1168,7 +1168,7 @@ def _on_move(self, event):
self.set_ylim3d(miny - dy, maxy + dy)
self.set_zlim3d(minz - dz, maxz + dz)
self.get_proj()
- self.figure.canvas.draw()
+ self.figure.canvas.draw_idle()
def set_zlabel(self, zlabel, fontdict=None, labelpad=None, **kwargs):
'''

0 comments on commit 31479e6

Please sign in to comment.