Skip to content

Commit 2698de3

Browse files
committed
Clarify get_masked_triangles and minor grammar fix
1 parent f4ca036 commit 2698de3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/matplotlib/tri/triangulation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def edges(self):
104104
Return integer array of shape (nedges, 2) containing all edges of
105105
non-masked triangles.
106106
107-
Each row defines an edge by it's start point index and end point
107+
Each row defines an edge by its start point index and end point
108108
index. Each edge appears only once, i.e. for an edge between points
109109
*i* and *j*, there will only be either *(i, j)* or *(j, i)*.
110110
"""
@@ -126,7 +126,7 @@ def get_cpp_triangulation(self):
126126

127127
def get_masked_triangles(self):
128128
"""
129-
Return an array of triangles that are not masked.
129+
Return an array of triangles taking the mask into account.
130130
"""
131131
if self.mask is not None:
132132
return self.triangles[~self.mask]

lib/matplotlib/tri/tricontour.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def _contour_args(self, args, kwargs):
129129
The colors of the levels, i.e., the contour %%(type)s.
130130
131131
The sequence is cycled for the levels in ascending order. If the sequence
132-
is shorter than the number of levels, it's repeated.
132+
is shorter than the number of levels, it is repeated.
133133
134134
As a shortcut, single color strings may be used in place of one-element
135135
lists, i.e. ``'red'`` instead of ``['red']`` to color all levels with the

0 commit comments

Comments
 (0)