Skip to content

Commit 8240e99

Browse files
committed
Fix flake8 errors
Oops, my bad.
1 parent 0b8fac2 commit 8240e99

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

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

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

lib/mpl_toolkits/mplot3d/tests/test_axes3d.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2227,12 +2227,13 @@ def test_mutating_input_arrays_y_and_z(fig_test, fig_ref):
22272227
z = [0.0, 0.0, 0.0]
22282228
ax2.plot(x, y, z, 'o-')
22292229

2230+
22302231
@mpl3d_image_comparison(['surface3d_zsort_inf.png'], style='mpl20')
22312232
def test_surface3d_zsort_inf():
22322233
fig = plt.figure()
22332234
ax = fig.add_subplot(projection='3d')
22342235

2235-
x, y = np.mgrid[-2:2:0.1,-2:2:0.1]
2236+
x, y = np.mgrid[-2:2:0.1, -2:2:0.1]
22362237
z = np.sin(x)**2 + np.cos(y)**2
22372238
z[x.shape[0] // 2:, x.shape[1] // 2:] = np.inf
22382239

0 commit comments

Comments
 (0)