Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6d9de3e

Browse files
committed
Merge pull request matplotlib#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.extendin ('min', 'max'):
602602
nb -= 1
603603
return nb
604604

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /