matplotlib/matplotlib — pull request #2632 by luispedro (2013-11-30 12:48:22+00:00)
Title: BUG Raise exception for invalid input

Arrays of non-uint8 types were assumed to be in 0..1 range.

When this was not true and integer values were used, only the low-order
bits were used, resulting in a mangled image. Now, an explicit exception
is raised.

Closes issue #2499