8000 linting · matplotlib/matplotlib@2f2e65c · GitHub
[go: up one dir, main page]

Skip to content

Commit 2f2e65c

Browse files
linting
1 parent 868ad20 commit 2f2e65c

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

lib/mpl_toolkits/mplot3d/art3d.py

Lines changed: 7 additions & 5 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,13 +1088,14 @@ 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
----------
10931096
segments3d : NumPy array or list of NumPy arrays
10941097
List of vertices of the boundary of every segment. If all paths are
1095-
of equal length and this argument is a NumPy arrray, then it should
1098+
of equal length and this argument is a NumPy array, then it should
10961099
be of shape (num_faces, num_vertices, 3).
10971100
"""
10981101
if isinstance(segments3d, np.ndarray):
@@ -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)
0