8000 Add comment, and additional text to docstring. · matplotlib/matplotlib@84e44e6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 84e44e6

Browse files
committed
Add comment, and additional text to docstring.
1 parent be1f5c1 commit 84e44e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/matplotlib/contour.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,6 +1173,9 @@ def _autolev(self, N):
11731173
"""
11741174
Select contour levels to span the data.
11751175
1176+
The target number of levels, *N*, is used only when the
1177+
scale is not log and default locator is used.
1178+
11761179
We need two more levels for filled contours than for
11771180
line contours, because for the latter we need to specify
11781181
the lower and upper boundary of each range. For example,
@@ -1195,6 +1198,7 @@ def _autolev(self, N):
11951198
except AttributeError:
11961199
pass
11971200

1201+
# Trim excess levels the locator may have supplied.
11981202
under = np.nonzero(lev < self.zmin)[0]
11991203
i0 = under[-1] if len(under) else 0
12001204
over = np.nonzero(lev > self.zmax)[0]

0 commit comments

Comments
 (0)
0