8000 Style fixes to triintepolate docs. · matplotlib/matplotlib@66ea283 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 66ea283

Browse files
committed
Style fixes to triintepolate docs.
1 parent 4078b8a commit 66ea283

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

lib/matplotlib/tri/triinterpolate.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,14 @@ def _interpolate_multikeys(self, x, y, tri_index=None,
114114
The purpose of :meth:`_interpolate_multikeys` is to implement the
115115
following common tasks needed in all subclasses implementations:
116116
117-
- calculation of containing triangles
118-
- dealing with more than one interpolation request at the same
119-
location (e.g., if the 2 derivatives are requested, it is
120-
unnecessary to compute the containing triangles twice)
121-
- scaling according to self._unit_x, self._unit_y
122-
- dealing with points outside of the grid (with fill value np.nan)
123-
- dealing with multi-dimensional *x*, *y* arrays: flattening for
124-
:meth:`_interpolate_params` call and final reshaping.
117+
- calculation of containing triangles
118+
- dealing with more than one interpolation request at the same
119+
location (e.g., if the 2 derivatives are requested, it is
120+
unnecessary to compute the containing triangles twice)
121+
- scaling according to self._unit_x, self._unit_y
122+
- dealing with points outside of the grid (with fill value np.nan)
123+
- dealing with multi-dimensional *x*, *y* arrays: flattening for
124+
:meth:`_interpolate_params` call and final reshaping.
125125
126126
(Note that np.vectorize could do most of those things very well for
127127
you, but it does it by function evaluations over successive tuples of
@@ -214,9 +214,9 @@ def _interpolate_single_key(self, return_key, tri_index, x, y):
214214
Parameters
215215
----------
216216
return_index : {'z', 'dzdx', 'dzdy'}
217-
Identifies the requested values (z or its derivatives)
217+
The requested values (z or its derivatives).
218218
tri_index : 1D int array
219-
Valid triangle index (-1 prohibited)
219+
Valid triangle index (cannot be -1).
220220
x, y : 1D arrays, same shape as `tri_index`
221221
Valid locations where interpolation is requested.
222222
@@ -245,8 +245,8 @@ class LinearTriInterpolator(TriInterpolator):
245245
z : array-like of shape (npoints,)
246246
Array of values, defined at grid points, to interpolate between.
247247
trifinder : `~matplotlib.tri.TriFinder`, optional
248-
If this is not specified, the Triangulation's default TriFinder will
249-
be used by calling `.Triangulation.get_trifinder`.
248+
If this is not specified, the Triangulation's default TriFinder will
249+
be used by calling `.Triangulation.get_trifinder`.
250250
251251
Methods
252252
-------

0 commit comments

Comments
 (0)
0