|
From: <jd...@us...> - 2008-06-17 14:05:51
|
Revision: 5569
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5569&view=rev
Author: jdh2358
Date: 2008-06-17 07:04:19 -0700 (Tue, 17 Jun 2008)
Log Message:
-----------
added get_verts method to patches
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/patches.py
Modified: trunk/matplotlib/lib/matplotlib/patches.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/patches.py 2008-06-17 13:02:56 UTC (rev 5568)
+++ trunk/matplotlib/lib/matplotlib/patches.py 2008-06-17 14:04:19 UTC (rev 5569)
@@ -80,6 +80,14 @@
__init__.__doc__ = cbook.dedent(__init__.__doc__) % artist.kwdocd
+ def get_verts(self):
+ """
+ return a copy of the vertices used in this patch
+ """
+ trans = self.get_transform()
+ path = self.get_path()
+ tverts = trans.transform(path.vertices)
+ return tverts
def contains(self, mouseevent):
"""Test whether the mouse event occurred in the patch.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|