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

Skip to content

Commit 630f0c3

Browse files
author
Andrew Dawson
committed
BF - Fix maximum colorbar extension.
1 parent e7d00d2 commit 630f0c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)