From 0c2ae15d4618d737aa0e30950b0f6d8660605d0f Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Tue, 23 Mar 2021 23:52:11 -0400 Subject: [PATCH] FIX: do not report that webagg supports blitting We now implement the required underlying methods (copy_from_bbox and restore_region), but there are issues with the double buffering in nbagg, initialization issues, and with updates to the front end being dropped. For mpl3.4.0 over-ride the class property that checks for the required methods until we can fix the issues with blitting. Closes #19701 --- lib/matplotlib/backends/backend_webagg_core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/matplotlib/backends/backend_webagg_core.py b/lib/matplotlib/backends/backend_webagg_core.py index fb72bf46d5a6..ed0d6173a6fe 100644 --- a/lib/matplotlib/backends/backend_webagg_core.py +++ b/lib/matplotlib/backends/backend_webagg_core.py @@ -116,6 +116,10 @@ def _timer_set_interval(self): class FigureCanvasWebAggCore(backend_agg.FigureCanvasAgg): _timer_cls = TimerTornado + # Webagg and friends having the right methods, but still + # having bugs in practice. Do not advertise that it works until + # we can debug this. + supports_blit = False def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs)