Revision: 8018 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8018&view=rev Author: leejjoon Date: 2009-12-10 20:05:58 +0000 (Thu, 10 Dec 2009)
Log Message: ----------- FancyArrowPatch.__str__ updated Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/patches.py Modified: trunk/matplotlib/lib/matplotlib/patches.py =================================================================== --- trunk/matplotlib/lib/matplotlib/patches.py 2009-12-10 19:05:35 UTC (rev 8017) +++ trunk/matplotlib/lib/matplotlib/patches.py 2009-12-10 20:05:58 UTC (rev 8018) @@ -3535,9 +3535,17 @@ def __str__(self): - return self.__class__.__name__ \ - + "FancyArrowPatch(%g,%g,%g,%g,%g,%g)" % tuple(self._q_bezier) + + if self._posA_posB is not None: + (x1, y1), (x2, y2) = self._posA_posB + return self.__class__.__name__ \ + + "(%g,%g->%g,%g)" % (x1, y1, x2, y2) + else: + return self.__class__.__name__ \ + + "(%s)" % (str(self._path_original),) + + @docstring.dedent_interpd def __init__(self, posA=None, posB=None, path=None, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins