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

Skip to content

Commit 4527293

Browse files
linting
1 parent 868ad20 commit 4527293

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

lib/mpl_toolkits/mplot3d/art3d.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,8 @@ def do_3d_projection(self):
467467
# broadcast mask to 3D
468468
viewlim_mask = viewlim_mask[..., np.newaxis].repeat(3, axis=-1)
469469
mask = mask | viewlim_mask
470-
xyzs = np.ma.array(proj3d._proj_transform_vectors(segments, self.axes.M), mask=mask)
470+
xyzs = np.ma.array(proj3d._proj_transform_vectors(segments, self.axes.M),
471+
mask=mask)
471472
segments_2d = xyzs[..., 0:2]
472473
LineCollection.set_segments(self, segments_2d)
473474

@@ -875,7 +876,8 @@ def do_3d_projection(self):
875876
mask = mask | xyz.mask
876877
if self._axlim_clip:
877878
mask = mask | _viewlim_mask(*self._offsets3d, self.axes)
878-
mask = np.broadcast_to(mask, (len(self._offsets3d), *self._offsets3d[0].shape))
879+
mask = np.broadcast_to(mask,
880+
(len(self._offsets3d), *self._offsets3d[0].shape))
879881
xyzs = np.ma.array(self._offsets3d, mask=mask)
880882
else:
881883
xyzs = self._offsets3d
@@ -1086,7 +1088,8 @@ def get_vector(self, segments3d):
10861088
return self._get_vector(segments3d)
10871089

10881090
def _get_vector(self, segments3d):
1089-
"""Optimize points for projection.
1091+
"""
1092+
Optimize points for projection.
10901093
10911094
Parameters
10921095
----------
@@ -1178,7 +1181,6 @@ def do_3d_projection(self):
11781181
if self._edge_is_mapped:
11791182
self._edgecolor3d = self._edgecolors
11801183

1181-
11821184
needs_masking = np.any(self._invalid_vertices)
11831185
num_faces = len(self._faces)
11841186
mask = self._invalid_vertices

lib/mpl_toolkits/mplot3d/proj3d.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ def _proj_transform_vec(vec, M):
140140

141141

142142
def _proj_transform_vectors(vecs, M):
143-
"""Vectorized version of ``_proj_transform_vec``.
143+
"""
144+
Vectorized version of ``_proj_transform_vec``.
145+
144146
Parameters
145147
----------
146148
vecs : ... x 3 np.ndarray

0 commit comments

Comments
 (0)