diff --git a/lib/matplotlib/figure.py b/lib/matplotlib/figure.py index af9495af3098..b58fca509d76 100644 --- a/lib/matplotlib/figure.py +++ b/lib/matplotlib/figure.py @@ -2060,8 +2060,11 @@ def axes(self): get_axes = axes.fget - def draw(self, renderer): + def draw(self, renderer=None): # docstring inherited + if renderer is None: + renderer = self.canvas.get_renderer() + self._cachedRenderer = renderer # draw the figure bounding box, perhaps none for white figure
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: