File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1414
1515from matplotlib import is_interactive
1616from matplotlib ._pylab_helpers import Gcf
17- from matplotlib .backend_bases import _Backend , NavigationToolbar2
17+ from matplotlib .backend_bases import _Backend , CloseEvent , NavigationToolbar2
1818from .backend_webagg_core import (
1919 FigureCanvasWebAggCore , FigureManagerWebAgg , NavigationToolbar2WebAgg )
2020from .backend_webagg_core import ( # noqa: F401 # pylint: disable=W0611
@@ -149,7 +149,7 @@ def clearup_closed(self):
149149 if socket .is_open ()}
150150
151151 if len (self .web_sockets ) == 0 :
152- self .canvas . close_event ()
152+ CloseEvent ( "close_event" , self .canvas ). _process ()
153153
154154 def remove_comm (self , comm_id ):
155155 self .web_sockets = {socket for socket in self .web_sockets
You can’t perform that action at this time.
0 commit comments