Skip to content

Commit 092256a

Browse files
authored
Merge pull request #14162 from meeseeksmachine/auto-backport-of-pr-14150-on-v3.1.x
Backport PR #14150 on branch v3.1.x (Fix deprecation of withdash for figtext().)
2 parents c206ea5 + 7965bf8 commit 092256a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/figure.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1860,7 +1860,8 @@ def text(self, x, y, s, fontdict=None, withdash=False, **kwargs):
18601860
"""
18611861
default = dict(transform=self.transFigure)
18621862

1863-
if withdash:
1863+
if (withdash
1864+
and withdash is not cbook.deprecation._deprecated_parameter):
18641865
text = TextWithDash(x=x, y=y, text=s)
18651866
else:
18661867
text = Text(x=x, y=y, text=s)

0 commit comments

Comments
 (0)