@@ -204,7 +204,8 @@ def handle_event(self, event):
204
204
handler = getattr (self , 'handle_{}' .format (e_type ), None )
205
205
if handler is None :
206
206
import warnings
207
- warnings .warn ('Unhandled message type {}. {}' .format (e_type , event ))
207
+ warnings .warn ('Unhandled message type {}. {}' .format (
208
+ e_type , event ))
208
209
else :
209
210
return handler (event )
210
211
@@ -216,8 +217,9 @@ def handle_resize(self, event):
216
217
fig .set_size_inches (x / fig .dpi , y / fig .dpi )
217
218
218
219
_ , _ , w , h = self .figure .bbox .bounds
219
- # Acknowledge the resize, and force the viewer to update the canvas size to the
220
- # figure's new size (which is hopefully identical or within a pixel or so).
220
+ # Acknowledge the resize, and force the viewer to update the
221
+ # canvas size to the figure's new size (which is hopefully
222
+ # identical or within a pixel or so).
221
223
self ._png_is_old = True
222
224
self .manager .resize (w , h )
223
225
@@ -248,7 +250,8 @@ class NavigationToolbar2WebAgg(backend_bases.NavigationToolbar2):
248
250
}
249
251
250
252
# Use the standard toolbar items + download button
251
- toolitems = [(text , tooltip_text , _jquery_icon_classes [image_file ], name_of_method )
253
+ toolitems = [(text , tooltip_text , _jquery_icon_classes [image_file ],
254
+ name_of_method )
252
255
for text , tooltip_text , image_file , name_of_method
253
256
in (backend_bases .NavigationToolbar2 .toolitems +
254
257
(('Download' , 'Download plot' , 'download' , 'download' ),))
0 commit comments