Revision: 8798 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8798&view=rev Author: leejjoon Date: 2010-11-15 00:31:16 +0000 (Mon, 15 Nov 2010)
Log Message: ----------- replace ax.transData in contour.py with proper get_transform call Modified Paths: -------------- branches/v1_0_maint/lib/matplotlib/contour.py Modified: branches/v1_0_maint/lib/matplotlib/contour.py =================================================================== --- branches/v1_0_maint/lib/matplotlib/contour.py 2010-11-12 16:58:09 UTC (rev 8797) +++ branches/v1_0_maint/lib/matplotlib/contour.py 2010-11-15 00:31:16 UTC (rev 8798) @@ -534,7 +534,6 @@ t.remove() def labels(self, inline, inline_spacing): - trans = self.ax.transData # A bit of shorthand if self._use_clabeltext: add_label = self.add_label_clabeltext @@ -546,6 +545,7 @@ self.labelCValueList ): con = self.collections[icon] + trans = con.get_transform() lw = self.get_label_width(lev, self.labelFmt, fsize) additions = [] paths = con.get_paths() @@ -1037,13 +1037,14 @@ for icon in indices: con = self.collections[icon] + trans = con.get_transform() paths = con.get_paths() for segNum, linepath in enumerate(paths): lc = linepath.vertices # transfer all data points to screen coordinates if desired if pixel: - lc = self.ax.transData.transform(lc) + lc = trans.transform(lc) ds = (lc[:,0]-x)**2 + (lc[:,1]-y)**2 d = min( ds ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins