Skip to content

Commit f76f564

Browse files
committed
Merge pull request #2689 from pelson/offset_box_clipping_off
Disable offset box clipping by default.
2 parents 38fd462 + 800e5c9 commit f76f564

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/offsetbox.py

+5
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ def __init__(self, *args, **kwargs):
149149

150150
super(OffsetBox, self).__init__(*args, **kwargs)
151151

152+
# Clipping has not been implemented in the OffesetBox family, so
153+
# disable the clip flag for consistency. It can always be turned back
154+
# on to zero effect.
155+
self.set_clip_on(False)
156+
152157
self._children = []
153158
self._offset = (0, 0)
154159

0 commit comments

Comments
 (0)