Skip to content

Commit 319ea6a

Browse files
committed
BUG: Fix IndexError: too many indices with numpy 1.8
1 parent 8bad5f7 commit 319ea6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tri/triinterpolate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,8 +1050,8 @@ def compute_dof_from_df(self):
10501050
gradient.
10511051
"""
10521052
J = CubicTriInterpolator._get_jacobian(self._tris_pts)
1053-
tri_z = self.z[self._triangles, :]
1054-
tri_dz = self.dz[self._triangles, :]
1053+
tri_z = self.z[self._triangles]
1054+
tri_dz = self.dz[self._triangles]
10551055
tri_dof = self.get_dof_vec(tri_z, tri_dz, J)
10561056
return tri_dof
10571057

0 commit comments

Comments
 (0)