Skip to content

Commit 4ea6820

Browse files
committed
Fix flake8 errors
Oops, my bad.
1 parent 7e820b7 commit 4ea6820

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,8 +1703,8 @@ def plot_surface(self, X, Y, Z, *, norm=None, vmin=None,
17031703
colset.append(fcolors[rs][cs])
17041704

17051705
# In cases where there are non-finite values in the data (possibly NaNs from
1706-
# masked arrays), artifacts can be introduced. Here check whether such values are
1707-
# present and remove them.
1706+
# masked arrays), artifacts can be introduced. Here check whether such values
1707+
# are present and remove them.
17081708
if not isinstance(polys, np.ndarray) or not np.isfinite(polys).all():
17091709
new_polys = []
17101710
new_colset = []

lib/mpl_toolkits/mplot3d/tests/test_axes3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2239,7 +2239,7 @@ def test_surface3d_zsort_inf():
22392239
fig = plt.figure()
22402240
ax = fig.add_subplot(projection='3d')
22412241

2242-
x, y = np.mgrid[-2:2:0.1,-2:2:0.1]
2242+
x, y = np.mgrid[-2:2:0.1, -2:2:0.1]
22432243
z = np.sin(x)**2 + np.cos(y)**2
22442244
z[x.shape[0] // 2:, x.shape[1] // 2:] = np.inf
22452245

0 commit comments

Comments
 (0)