Revision: 4311
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4311&view=rev
Author: mdboom
Date: 2007-11-15 10:10:54 -0800 (Thu, 15 Nov 2007)
Log Message:
-----------
Major speed improvement (duplicate draws were being emitted).
Modified Paths:
--------------
branches/transforms/lib/matplotlib/axes.py
branches/transforms/lib/matplotlib/backends/backend_tkagg.py
Modified: branches/transforms/lib/matplotlib/axes.py
===================================================================
--- branches/transforms/lib/matplotlib/axes.py 2007-11-15 17:23:03 UTC (rev
4310)
+++ branches/transforms/lib/matplotlib/axes.py 2007-11-15 18:10:54 UTC (rev
4311)
@@ -1608,9 +1608,8 @@
for other in self._shared_x_axes.get_siblings(self):
if other is not self:
other.set_xlim(self.viewLim.intervalx, emit=False)
-
- if self.figure.canvas is not None:
- self.figure.canvas.draw_idle()
+ if other.figure != self.figure and other.figure.canvas is
not None:
+ other.figure.canvas.draw_idle()
return xmin, xmax
@@ -1770,9 +1769,8 @@
for other in self._shared_y_axes.get_siblings(self):
if other is not self:
other.set_ylim(self.viewLim.intervaly, emit=False)
-
- if self.figure.canvas is not None:
- self.figure.canvas.draw_idle()
+ if other.figure != self.figure and other.figure.canvas is
not None:
+ other.figure.canvas.draw_idle()
return ymin, ymax
def get_yscale(self):
Modified: branches/transforms/lib/matplotlib/backends/backend_tkagg.py
===================================================================
--- branches/transforms/lib/matplotlib/backends/backend_tkagg.py
2007-11-15 17:23:03 UTC (rev 4310)
+++ branches/transforms/lib/matplotlib/backends/backend_tkagg.py
2007-11-15 18:10:54 UTC (rev 4311)
@@ -146,7 +146,7 @@
def __init__(self, figure, master=None, resize_callback=None):
FigureCanvasAgg.__init__(self, figure)
- self._idle = False
+ self._idle = True
t1,t2,w,h = self.figure.bbox.bounds
w, h = int(w), int(h)
self._tkcanvas = Tk.Canvas(
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins