8000 Merge remote-tracking branch 'upstream/v1.2.x' · matplotlib/matplotlib@23c9734 · GitHub
[go: up one dir, main page]

Skip to content

Commit 23c9734

Browse files
committed
Merge remote-tracking branch 'upstream/v1.2.x'
Conflicts: lib/matplotlib/axes.py
2 parents e13cd6e + 41315b6 commit 23c9734

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/matplotlib/axes.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3354,6 +3354,7 @@ def text(self, x, y, s, fontdict=None,
33543354
'verticalalignment': 'baseline',
33553355
'horizontalalignment': 'left',
33563356
'transform': self.transData,
3357+
'clip_on': False
33573358
}
33583359

33593360
# At some point if we feel confident that TextWithDash
@@ -3377,9 +3378,7 @@ def text(self, x, y, s, fontdict=None,
33773378
self.texts.append(t)
33783379
t._remove_method = lambda h: self.texts.remove(h)
33793380

3380-
#if t.get_clip_on(): t.set_clip_box(self.bbox)
3381-
if 'clip_on' in kwargs:
3382-
t.set_clip_box(self.bbox)
3381+
t.set_clip_path(self.patch)
33833382
return t
33843383

33853384
@docstring.dedent_interpd

0 commit comments

Comments
 (0)
0