Skip to content

Commit ee2783b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6ccb49f commit ee2783b

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

docs/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
release = "unknown"
2424

2525

26-
2726
# -- Project information -----------------------------------------------------
2827

2928
project = "mpl_pan_zoom"

mpl_pan_zoom/_pan.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
__all__ = [
22
"PanManager",
33
]
4+
5+
46
class PanManager:
57
"""
68
Enable panning a plot with any mouse button.
@@ -50,7 +52,9 @@ def enable(self):
5052
raise RuntimeError("The PanManager is already enabled")
5153

5254
self._id_press = self.fig.canvas.mpl_connect("button_press_event", self.press)
53-
self._id_release = self.fig.canvas.mpl_connect("button_release_event", self.release)
55+
self._id_release = self.fig.canvas.mpl_connect(
56+
"button_release_event", self.release
57+
)
5458

5559
def disable(self):
5660
"""
@@ -103,7 +107,9 @@ def press(self, event):
103107
):
104108
a.start_pan(x, y, event.button)
105109
self._xypress.append((a, i))
106-
self._id_drag = self.fig.canvas.mpl_connect("motion_notify_event", self._mouse_move)
110+
self._id_drag = self.fig.canvas.mpl_connect(
111+
"motion_notify_event", self._mouse_move
112+
)
107113

108114
def release(self, event):
109115
self._cancel_action()

mpl_pan_zoom/_zoom.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
__all__ = [
44
"zoom_factory",
55
]
6+
7+
68
# based on https://gist.github.com/tacaswell/3144287
79
def zoom_factory(ax, base_scale=1.1):
810
"""

setup.cfg

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@ url = https://github.com/ianhi/mpl-pan-zoom
77
author = Ian Hunt-Isaak
88
author_email = [email protected]
99
license = BSD-3-Clause
10-
license_file = LICENSE
10+
license_files = LICENSE
1111
classifiers =
1212
Development Status :: 2 - Pre-Alpha
1313
License :: OSI Approved :: BSD License
1414
Natural Language :: English
1515
Programming Language :: Python :: 3
1616
Programming Language :: Python :: 3 :: Only
17-
Programming Language :: Python :: 3.7
18-
Programming Language :: Python :: 3.8
19-
Programming Language :: Python :: 3.9
2017
Programming Language :: Python :: Implementation :: CPython
2118
project_urls =
2219
Source Code =https://github.com/ianhi/mpl-pan-zoom
@@ -26,7 +23,7 @@ packages = find:
2623
install_requires =
2724
matplotlib
2825
numpy
29-
python_requires = >=3.7
26+
python_requires = >=3.8
3027
zip_safe = False
3128

3229
[options.extras_require]

0 commit comments

Comments
 (0)