Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 16adba8

Browse files
Alejandro Garcíatacaswell
authored andcommitted
Remove stray changes
1 parent d469a24 commit 16adba8

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

lib/matplotlib/backends/backend_gtk3.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
import functools
22
import logging
33
import os
4-
import sys
54
from pathlib import Path
5+
import sys
66

77
import matplotlib as mpl
88
from matplotlib import _api, backend_tools, cbook
99
from matplotlib._pylab_helpers import Gcf
1010
from matplotlib.backend_bases import (
1111
_Backend, FigureCanvasBase, FigureManagerBase, NavigationToolbar2,
1212
StatusbarBase, TimerBase, ToolContainerBase, cursors)
13+
from matplotlib.figure import Figure
14+
from matplotlib.widgets import SubplotTool
1315

1416
try:
1517
import gi

lib/matplotlib/backends/backend_webagg_core.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111
# application, implemented with tornado.
1212

1313
import datetime
14-
from io import BytesIO, StringIO
1514
import json
1615
import logging
1716
import os
17+
from io import BytesIO, StringIO
1818
from pathlib import Path
1919

2020
import numpy as np
21-
from PIL import Image
2221
import tornado
22+
from PIL import Image
2323

2424
from matplotlib import _api, backend_bases
25-
from matplotlib.backends import backend_agg
2625
from matplotlib.backend_bases import _Backend
26+
from matplotlib.backends import backend_agg
2727

2828
_log = logging.getLogger(__name__)
2929

@@ -236,7 +236,7 @@ def handle_event(self, event):
236236

237237
def handle_unknown_event(self, event):
238238
_log.warning('Unhandled message type {0}. {1}'.format(
239-
event['type'], event))
239+
event['type'], event))
240240

241241
def handle_ack(self, event):
242242
# Network latency tends to decrease if traffic is flowing
@@ -276,7 +276,6 @@ def _handle_mouse(self, event):
276276
self.leave_notify_event()
277277
elif e_type == 'scroll':
278278
self.scroll_event(x, y, event['step'], guiEvent=guiEvent)
279-
280279
handle_button_press = handle_button_release = handle_dblclick = \
281280
handle_figure_enter = handle_figure_leave = handle_motion_notify = \
282281
handle_scroll = _handle_mouse
@@ -289,7 +288,6 @@ def _handle_key(self, event):
289288
self.key_press_event(key, guiEvent=guiEvent)
290289
elif e_type == 'key_release':
291290
self.key_release_event(key, guiEvent=guiEvent)
292-
293291
handle_key_press = handle_key_release = _handle_key
294292

295293
def handle_toolbar_button(self, event):
@@ -353,6 +351,7 @@ def send_event(self, event_type, **kwargs):
353351

354352

355353
class NavigationToolbar2WebAgg(backend_bases.NavigationToolbar2):
354+
356355
# Use the standard toolbar items + download button
357356
toolitems = [
358357
(text, tooltip_text, image_file, name_of_method)
@@ -472,8 +471,8 @@ def get_javascript(cls, stream=None):
472471

473472
extensions = []
474473
for filetype, ext in sorted(FigureCanvasWebAggCore.
475-
get_supported_filetypes_grouped().
476-
items()):
474+
get_supported_filetypes_grouped().
475+
items()):
477476
extensions.append(ext[0])
478477
output.write("mpl.extensions = {0};\n\n".format(
479478
json.dumps(extensions)))

0 commit comments

Comments
 (0)