8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be1f5c1 commit 84e44e6Copy full SHA for 84e44e6
lib/matplotlib/contour.py
@@ -1173,6 +1173,9 @@ def _autolev(self, N):
1173
"""
1174
Select contour levels to span the data.
1175
1176
+ The target number of levels, *N*, is used only when the
1177
+ scale is not log and default locator is used.
1178
+
1179
We need two more levels for filled contours than for
1180
line contours, because for the latter we need to specify
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.
1202
under = np.nonzero(lev < self.zmin)[0]
1203
i0 = under[-1] if len(under) else 0
1204
over = np.nonzero(lev > self.zmax)[0]
0 commit comments