matplotlib/matplotlib — pull request #931 by ajdawson (2012-06-07 11:17:41+00:00)
Title: BF - Fix maximum colorbar extension.

The maximum extension for colorbars was broken. This resulted in the maximum extension being the wrong color. This was introduced in commit b2f2ab944b0c1f45dbb6fcef1385a9f566fec9ed.

I traced this to a simple error when setting the number of boundaries. A check for `'min'` or `'both'` was used instead of a check for `'min'` or `'max'`.