|
From: <lee...@us...> - 2009-08-12 00:04:54
|
Revision: 7474
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7474&view=rev
Author: leejjoon
Date: 2009-08-12 00:04:43 +0000 (Wed, 12 Aug 2009)
Log Message:
-----------
add OffsetBox.contains method
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/offsetbox.py
Modified: trunk/matplotlib/lib/matplotlib/offsetbox.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/offsetbox.py 2009-08-11 19:28:09 UTC (rev 7473)
+++ trunk/matplotlib/lib/matplotlib/offsetbox.py 2009-08-12 00:04:43 UTC (rev 7474)
@@ -152,6 +152,13 @@
for c in self.get_children():
c.set_figure(fig)
+ def contains(self, mouseevent):
+ for c in self.get_children():
+ a, b = c.contains(mouseevent)
+ if a:
+ return a, b
+ return False, {}
+
def set_offset(self, xy):
"""
Set the offset
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|