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

Skip to content

Commit 6d9de3e

Browse files
committed
Merge pull request #931 from ajdawson/cb-extension-fix
BF - Fix maximum colorbar extension.
2 parents e7d00d2 + 630f0c3 commit 6d9de3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/colorbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ def _central_N(self):
598598
nb = len(self._boundaries)
599599
if self.extend == 'both':
600600
nb -= 2
601-
elif self._extend_lower():
601+
elif self.extend in ('min', 'max'):
602602
nb -= 1
603603
return nb
604604

0 commit comments

Comments
 (0)