From 7965bf890cadd33313ed4df03b7f4cfaac0d718f Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Tue, 7 May 2019 21:44:16 +0200 Subject: [PATCH] Backport PR #14150: Fix deprecation of withdash for figtext(). --- lib/matplotlib/figure.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/figure.py b/lib/matplotlib/figure.py index 2866c1a6b362..f679937bf940 100644 --- a/lib/matplotlib/figure.py +++ b/lib/matplotlib/figure.py @@ -1860,7 +1860,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)