matplotlib/matplotlib — pull request #869 by mdboom (2012-05-14 18:07:04+00:00)
Title: Faster "direct" interpolation

When using nearest neighbor interpolation and not actually scaling, just copy the data verbatim. (Note we don't do this for other kinds of interpolation, because the filtering on those interpolations could have an effect even when not actually scaling.)