Skip to content

Commit 3133596

Browse files
committed
Review comments
1 parent 0514914 commit 3133596

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/matplotlib/tri/_triangulation.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ def set_mask(self, mask):
233233

234234
# Set mask in C++ Triangulation.
235235
if self._cpp_triangulation is not None:
236-
self._cpp_triangulation.set_mask(self.mask if self.mask is not None else ())
236+
self._cpp_triangulation.set_mask(
237+
self.mask if self.mask is not None else ())
237238

238239
# Clear derived fields so they are recalculated when needed.
239240
self._edges = None

src/tri/_tri_wrapper.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ PYBIND11_MODULE(_tri, m) {
1717
py::arg("neighbors"),
1818
py::arg("correct_triangle_orientations"),
1919
"Create a new C++ Triangulation object.\n"
20-
"This should not be called directly, instead use the python class\n"
20+
"This should not be called directly, use the python class\n"
2121
"matplotlib.tri.Triangulation instead.\n")
2222
.def("calculate_plane_coefficients", &Triangulation::calculate_plane_coefficients,
2323
"Calculate plane equation coefficients for all unmasked triangles.")
@@ -34,7 +34,7 @@ PYBIND11_MODULE(_tri, m) {
3434
py::arg("triangulation"),
3535
py::arg("z"),
3636
"Create a new C++ TriContourGenerator object.\n"
37-
"This should not be called directly, instead use the functions\n"
37+
"This should not be called directly, use the functions\n"
3838
"matplotlib.axes.tricontour and tricontourf instead.\n")
3939
.def("create_contour", &TriContourGenerator::create_contour,
4040
"Create and return a non-filled contour.")
@@ -45,7 +45,7 @@ PYBIND11_MODULE(_tri, m) {
4545
.def(py::init<Triangulation&>(),
4646
py::arg("triangulation"),
4747
"Create a new C++ TrapezoidMapTriFinder object.\n"
48-
"This should not be called directly, instead use the python class\n"
48+
"This should not be called directly, use the python class\n"
4949
"matplotlib.tri.TrapezoidMapTriFinder instead.\n")
5050
.def("find_many", &TrapezoidMapTriFinder::find_many,
5151
"Find indices of triangles containing the point coordinates (x, y).")

0 commit comments

Comments
 (0)