-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add locking behavior for panning (#2)
* add locking behavior for panning * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
24035a5
commit 018adf2
Showing
7 changed files
with
33 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,11 @@ | |
__author__ = "Ian Hunt-Isaak" | ||
__email__ = "[email protected]" | ||
|
||
from ._zoom import zoom_factory | ||
from ._pan import PanManager | ||
from matplotlib.backend_bases import MouseButton | ||
|
||
from ._pan import PanManager | ||
from ._zoom import zoom_factory | ||
|
||
__all__ = [ | ||
"__version__", | ||
"__author__", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,4 +91,3 @@ def disconnect_zoom(): | |
|
||
# return the disconnect function | ||
return disconnect_zoom | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,67 @@ | ||
|
||
[metadata] | ||
name = mpl-pan-zoom | ||
url = https://github.com/ianhi/mpl-pan-zoom | ||
author = Ian Hunt-Isaak | ||
author_email = [email protected] | ||
|
||
|
||
name = mpl_pan_zoom | ||
description = Panning and zooming with the mouse for matplotlib | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
license = BSD license | ||
url = https://github.com/ianhi/mpl-pan-zoom | ||
author = Ian Hunt-Isaak | ||
author_email = [email protected] | ||
license = BSD-3-Clause | ||
license_file = LICENSE | ||
classifiers = | ||
Development Status :: 2 - Pre-Alpha | ||
License :: OSI Approved :: BSD License | ||
Natural Language :: English | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: Implementation :: CPython | ||
project_urls = | ||
Source Code =https://github.com/ianhi/mpl-pan-zoom | ||
|
||
[options] | ||
zip_safe = False | ||
packages = find: | ||
python_requires = >=3.7 | ||
install_requires = | ||
numpy | ||
matplotlib | ||
numpy | ||
python_requires = >=3.7 | ||
zip_safe = False | ||
|
||
[options.extras_require] | ||
testing = | ||
tox | ||
tox-conda | ||
pytest | ||
pytest-cov | ||
nbval | ||
dev = | ||
ipython | ||
jedi<0.18.0 | ||
black | ||
flake8 | ||
flake8-docstrings | ||
ipython | ||
isort | ||
jedi<0.18.0 | ||
mypy | ||
pre-commit | ||
pydocstyle | ||
pytest | ||
doc = | ||
Sphinx>=1.5 | ||
jupyter-sphinx | ||
myst-nb | ||
numpydoc | ||
Sphinx >= 1.5 | ||
sphinx-book-theme | ||
sphinx-copybutton | ||
sphinx-panels | ||
sphinx-thebe | ||
sphinx-togglebutton | ||
|
||
|
||
testing = | ||
nbval | ||
pytest | ||
pytest-cov | ||
tox | ||
tox-conda | ||
|
||
[bdist_wheel] | ||
universal = 1 | ||
|
||
|
||
|
||
[flake8] | ||
exclude = docs, _version.py, .eggs, example | ||
max-line-length = 88 | ||
docstring-convention = "numpy" | ||
# ignore = D100, D213, D401, D413, D107, W503 |