Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 727ccb5

Browse filesBrowse files
committed
Run pre-commit
1 parent 5ed2084 commit 727ccb5
Copy full SHA for 727ccb5

File tree

Expand file treeCollapse file tree

1 file changed

+7
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-6
lines changed

‎src/napari_matplotlib/base.py

Copy file name to clipboardExpand all lines: src/napari_matplotlib/base.py
+7-6Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1+
import os
2+
from pathlib import Path
3+
14
import matplotlib as mpl
25
import napari
36
from matplotlib.backends.backend_qt5agg import (
47
FigureCanvas,
58
NavigationToolbar2QT,
69
)
7-
from qtpy.QtWidgets import QVBoxLayout, QWidget
810
from qtpy.QtGui import QIcon
9-
from pathlib import Path
10-
import os
11+
from qtpy.QtWidgets import QVBoxLayout, QWidget
1112

1213
mpl.rc("axes", edgecolor="white")
1314
mpl.rc("axes", facecolor="#262930")
@@ -123,7 +124,6 @@ def draw(self) -> None:
123124
This is a no-op, and is intended for derived classes to override.
124125
"""
125126

126-
127127
def _on_update_layers(self) -> None:
128128
"""This function is called when self.layers is updated via self.update_layers()
129129
@@ -163,8 +163,9 @@ def _update_buttons_checked(self):
163163
QIcon(os.path.join(ICON_ROOT, "Pan_checked.png"))
164164
)
165165
else:
166-
self._actions["pan"].setIcon(QIcon(os.path.join(ICON_ROOT,
167-
"Pan.png")))
166+
self._actions["pan"].setIcon(
167+
QIcon(os.path.join(ICON_ROOT, "Pan.png"))
168+
)
168169
if "zoom" in self._actions:
169170
if self._actions["zoom"].isChecked():
170171
self._actions["zoom"].setIcon(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.