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

Skip to content

Commit 8fe19eb

Browse files
committed
FIX: flk8
1 parent 0980b79 commit 8fe19eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/colorbar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -957,8 +957,8 @@ def _forward_boundaries(self, x):
957957
b = self._boundaries
958958
y = np.interp(x, b, np.linspace(0, b[-1], len(b)))
959959
eps = (b[-1] - b[0]) * 1e-6
960-
y[x<b[0]-eps] = -1
961-
y[x>b[-1]+eps] = 2
960+
y[x < b[0]-eps] = -1
961+
y[x > b[-1]+eps] = 2
962962
return y
963963

964964
def _inverse_boundaries(self, x):

0 commit comments

Comments
 (0)