File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1173,6 +1173,9 @@ def _autolev(self, N):
1173
1173
"""
1174
1174
Select contour levels to span the data.
1175
1175
1176
+ The target number of levels, *N*, is used only when the
1177
+ scale is not log and default locator is used.
1178
+
1176
1179
We need two more levels for filled contours than for
1177
1180
line contours, because for the latter we need to specify
1178
1181
the lower and upper boundary of each range. For example,
@@ -1195,6 +1198,7 @@ def _autolev(self, N):
1195
1198
except AttributeError :
1196
1199
pass
1197
1200
1201
+ # Trim excess levels the locator may have supplied.
1198
1202
under = np .nonzero (lev < self .zmin )[0 ]
1199
1203
i0 = under [- 1 ] if len (under ) else 0
1200
1204
over = np .nonzero (lev > self .zmax )[0 ]
You can’t perform that action at this time.
0 commit comments