From 6d9a65a430c17fa971b8dbb201d71911e20c4754 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Thu, 31 May 2018 00:53:26 -0700 Subject: [PATCH] Make OSX's blit() have a consistent signature with other backends. FigureCanvasBase.blit documents blit() as defaulting bbox to the whole figure, and all backends implement it as such... except, until now, MacOSX. Fix the inconsistency. --- lib/matplotlib/backends/backend_macosx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/backends/backend_macosx.py b/lib/matplotlib/backends/backend_macosx.py index 2ccc17cd3fca..f10c1e2a69c0 100644 --- a/lib/matplotlib/backends/backend_macosx.py +++ b/lib/matplotlib/backends/backend_macosx.py @@ -88,7 +88,7 @@ def draw(self): def draw_idle(self, *args, **kwargs): self.invalidate() - def blit(self, bbox): + def blit(self, bbox=None): self.invalidate() def resize(self, width, height):