From 630f0c3befe14d483fc74a86803a203c5750da98 Mon Sep 17 00:00:00 2001 From: Andrew Dawson Date: Thu, 7 Jun 2012 12:06:39 +0100 Subject: [PATCH] BF - Fix maximum colorbar extension. --- lib/matplotlib/colorbar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/colorbar.py b/lib/matplotlib/colorbar.py index d418a216b016..6708e961bd50 100644 --- a/lib/matplotlib/colorbar.py +++ b/lib/matplotlib/colorbar.py @@ -598,7 +598,7 @@ def _central_N(self): nb = len(self._boundaries) if self.extend == 'both': nb -= 2 - elif self._extend_lower(): + elif self.extend in ('min', 'max'): nb -= 1 return nb