Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 834f4cb

Browse files
author
Daniel Hyams
committed
Instead of trying to merge the containment attribute dicts from both the text
and the bounding box, the bounding box's attributes are now a key within the returned attribute dict. The key is "bbox_patch".
1 parent 41a3d80 commit 834f4cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def contains(self,mouseevent):
218218
if self._bbox_patch:
219219
patch_inside, patch_cattr = self._bbox_patch.contains(mouseevent)
220220
inside = inside or patch_inside
221-
cattr.update(patch_cattr)
221+
cattr["bbox_patch"] = patch_cattr
222222

223223
return inside, cattr
224224

0 commit comments

Comments
 (0)