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

Skip to content

Commit 7965bf8

Browse files
timhoffmMeeseeksDev[bot]
authored andcommitted
Backport PR #14150: Fix deprecation of withdash for figtext().
1 parent c206ea5 commit 7965bf8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/matplotlib/figure.py

Lines changed: 2 additions & 1 deletion
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)