diff --git a/lib/matplotlib/figure.py b/lib/matplotlib/figure.py index e74a3dac1e25..9c9bce18392e 100644 --- a/lib/matplotlib/figure.py +++ b/lib/matplotlib/figure.py @@ -1867,7 +1867,8 @@ def text(self, x, y, s, fontdict=None, withdash=False, **kwargs): """ default = dict(transform=self.transFigure) - if withdash: + if (withdash + and withdash is not cbook.deprecation._deprecated_parameter): text = TextWithDash(x=x, y=y, text=s) else: text = Text(x=x, y=y, text=s)