Skip to content

Commit 0c11e32

Browse files
committed
STY : PEP8 fixes
1 parent 5b11ec3 commit 0c11e32

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lib/matplotlib/backends/backend_webagg_core.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ def handle_event(self, event):
204204
handler = getattr(self, 'handle_{}'.format(e_type), None)
205205
if handler is None:
206206
import warnings
207-
warnings.warn('Unhandled message type {}. {}'.format(e_type, event))
207+
warnings.warn('Unhandled message type {}. {}'.format(
208+
e_type, event))
208209
else:
209210
return handler(event)
210211

@@ -216,8 +217,9 @@ def handle_resize(self, event):
216217
fig.set_size_inches(x / fig.dpi, y / fig.dpi)
217218

218219
_, _, 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).
221223
self._png_is_old = True
222224
self.manager.resize(w, h)
223225

@@ -248,7 +250,8 @@ class NavigationToolbar2WebAgg(backend_bases.NavigationToolbar2):
248250
}
249251

250252
# 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)
252255
for text, tooltip_text, image_file, name_of_method
253256
in (backend_bases.NavigationToolbar2.toolitems +
254257
(('Download', 'Download plot', 'download', 'download'),))

0 commit comments

Comments
 (0)