8000 Backport PR #14150: Fix deprecation of withdash for figtext(). · matplotlib/matplotlib@7965bf8 · GitHub
[go: up one dir, main page]

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/figure.py

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