Skip to content

Commit fec1fa0

Browse files
committed
Fix tiling in trirefine.py
1 parent d376dad commit fec1fa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tri/trirefine.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def _refine_triangulation_once(triangulation, ancestors=None):
238238
# (can be -1 if border edge)
239239
# For slave and master we will identify the apex pointing to the edge
240240
# start
241-
edge_elems = np.tile(np.arange(3, dtype=np.int32), ntri)
241+
edge_elems = np.tile(np.arange(ntri, dtype=np.int32), 3)
242242
edge_apexes = np.repeat(np.arange(3, dtype=np.int32), ntri)
243243
edge_neighbors = neighbors[edge_elems, edge_apexes]
244244
mask_masters = (edge_elems > edge_neighbors)

0 commit comments

Comments
 (0)