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 14
14
15
15
from matplotlib import is_interactive
16
16
from matplotlib ._pylab_helpers import Gcf
17
- from matplotlib .backend_bases import _Backend , NavigationToolbar2
17
+ from matplotlib .backend_bases import _Backend , CloseEvent , NavigationToolbar2
18
18
from .backend_webagg_core import (
19
19
FigureCanvasWebAggCore , FigureManagerWebAgg , NavigationToolbar2WebAgg )
20
20
from .backend_webagg_core import ( # noqa: F401 # pylint: disable=W0611
@@ -149,7 +149,7 @@ def clearup_closed(self):
149
149
if socket .is_open ()}
150
150
151
151
if len (self .web_sockets ) == 0 :
152
- self .canvas . close_event ()
152
+ CloseEvent ( "close_event" , self .canvas ). _process ()
153
153
154
154
def remove_comm (self , comm_id ):
155
155
self .web_sockets = {socket for socket in self .web_sockets
You can’t perform that action at this time.
0 commit comments