SourceForge logo
SourceForge logo
Menu

matplotlib-checkins

From: <lee...@us...> - 2010年11月15日 00:31:28
Revision: 8798
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8798&view=rev
Author: leejjoon
Date: 2010年11月15日 00:31:16 +0000 (2010年11月15日)
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.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /