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

Skip to content

Commit 65c9f6c

Browse files
godsicQuLogic
authored andcommitted
BUG: fix CubicTriInterpolator when masked triangulation is used
1 parent 9c89f7a commit 65c9f6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/tri/triinterpolate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,8 @@ def __init__(self, triangulation, z, kind='min_E', trifinder=None,
401401
self._tri_renum = tri_renum
402402
# Taking into account the node renumbering in self._z:
403403
node_mask = (node_renum == -1)
404-
self._z[node_renum[~node_mask]] = self._z
405404
self._z = self._z[~node_mask]
405+
self._z[node_renum[~node_mask]] = self._z
406406

407407
# Computing scale factors
408408
self._unit_x = np.ptp(compressed_x)

0 commit comments

Comments
 (0)