Thanks to visit codestin.com Credit goes to github.com
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 bee40fd commit fdcf86fCopy full SHA for fdcf86f
1 file changed
lib/matplotlib/contour.py
@@ -1147,7 +1147,7 @@ def _autolev(self, N):
1147
if self.logscale:
1148
self.locator = ticker.LogLocator()
1149
else:
1150
- self.locator = ticker.MaxNLocator(N + 1)
+ self.locator = ticker.MaxNLocator(N + 1, min_n_ticks=1)
1151
zmax = self.zmax
1152
zmin = self.zmin
1153
lev = self.locator.tick_values(zmin, zmax)
0 commit comments