Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fdcf86f

Browse files
committed
BUG: contourf, restore previous behavior with N=2
Closes #6782.
1 parent bee40fd commit fdcf86f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/contour.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ def _autolev(self, N):
11471147
if self.logscale:
11481148
self.locator = ticker.LogLocator()
11491149
else:
1150-
self.locator = ticker.MaxNLocator(N + 1)
1150+
self.locator = ticker.MaxNLocator(N + 1, min_n_ticks=1)
11511151
zmax = self.zmax
11521152
zmin = self.zmin
11531153
lev = self.locator.tick_values(zmin, zmax)

0 commit comments

Comments
 (0)