From afcd48204a6e34f687395d343e4fca28ff5f33c8 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Mon, 28 Dec 2020 22:43:54 +0000 Subject: [PATCH 1/2] Document Triangulation.triangles --- lib/matplotlib/tri/triangulation.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/matplotlib/tri/triangulation.py b/lib/matplotlib/tri/triangulation.py index 8d61c19e2499..52a8c8eccd8a 100644 --- a/lib/matplotlib/tri/triangulation.py +++ b/lib/matplotlib/tri/triangulation.py @@ -20,10 +20,9 @@ class Triangulation: Attributes ---------- - edges : int array of shape (nedges, 2) - See `~.Triangulation.edges` - neighbors : int array of shape (ntri, 3) - See `~.Triangulation.neighbors` + triangles : int array-like of shape (ntri, 3) + For each triangle, the indices of the three points that make + up the triangle, ordered in an anticlockwise manner. mask : bool array of shape (ntri, 3) Masked out triangles. is_delaunay : bool From 37e9161a16c03865c1f03fe33e214da4912c54ed Mon Sep 17 00:00:00 2001 From: David Stansby Date: Wed, 30 Dec 2020 14:33:13 +0000 Subject: [PATCH 2/2] Update lib/matplotlib/tri/triangulation.py Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> --- lib/matplotlib/tri/triangulation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/tri/triangulation.py b/lib/matplotlib/tri/triangulation.py index 52a8c8eccd8a..f207ee26d52a 100644 --- a/lib/matplotlib/tri/triangulation.py +++ b/lib/matplotlib/tri/triangulation.py @@ -22,7 +22,8 @@ class Triangulation: ---------- triangles : int array-like of shape (ntri, 3) For each triangle, the indices of the three points that make - up the triangle, ordered in an anticlockwise manner. + up the triangle, ordered in an anticlockwise manner. If you want to + take the *mask* into account, use `get_masked_triangles` instead. mask : bool array of shape (ntri, 3) Masked out triangles. is_delaunay : bool