From dd7259f6db7c9c49e13c76995fdc152ed8d35b5d Mon Sep 17 00:00:00 2001 From: Bruno Beltran Date: Tue, 14 Apr 2020 20:11:55 -0700 Subject: [PATCH] BUGFIX: conditional for add_axes arg deprecation --- lib/matplotlib/figure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/figure.py b/lib/matplotlib/figure.py index 299e893993f8..bf54af53dfc4 100644 --- a/lib/matplotlib/figure.py +++ b/lib/matplotlib/figure.py @@ -1204,7 +1204,7 @@ def add_axes(self, *args, **kwargs): fig.add_axes(ax) """ - if not len(args): + if not len(args) and 'rect' not in kwargs: cbook.warn_deprecated( "3.3", message="Calling add_axes() without argument is "