Revision: 8319 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8319&view=rev Author: leejjoon Date: 2010-05-18 17:14:45 +0000 (Tue, 18 May 2010)
Log Message: ----------- fix a bug in AnnotationBase._get_ref_xy Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/text.py Modified: trunk/matplotlib/lib/matplotlib/text.py =================================================================== --- trunk/matplotlib/lib/matplotlib/text.py 2010-05-18 17:14:40 UTC (rev 8318) +++ trunk/matplotlib/lib/matplotlib/text.py 2010-05-18 17:14:45 UTC (rev 8319) @@ -1527,7 +1527,8 @@ if isinstance(self.xycoords, tuple): s1, s2 = self.xycoords - if s1.split()[0] == "offset" or s2.split()[0] == "offset": + if (is_string_like(s1) and s1.split()[0] == "offset") \ + or (is_string_like(s2) and s2.split()[0] == "offset"): raise ValueError("xycoords should not be an offset coordinate") x, y = self.xy x1, y1 = self._get_xy(renderer, x, y, s1) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins