You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pyplot.imshow() "None" interpolation is not supported on Mac OSX #4320
When passing in interpolation='none' to the imshow() function, I get the following error:
/usr/local/lib/python2.7/site-packages/matplotlib/image.py:649: UserWarning: The backend (<class 'matplotlib.backends.backend_macosx.RendererMac'>) does not support interpolation='none'. The image will be interpolated with 'nearest` mode.
I'm on Mac OS X 10.10.3, Python 2.7.9. It seems strange that the no interpolation mode would not be supported here.
Interpolation 'none' is essentially the same thing as "nearest". The issue
is whether to let the native backend handle it ('none') or to have it taken
care of in AGG ('nearest'). The results are the same, although it tends to
be that the native backends can handle this more efficiently. I don't
remember why macosx backend wasn't set up to handle 'none', though.
I think this is fairly easy to solve, but I am having difficulty understanding what draw_image is supposed to do. If draw_image gets a transformation matrix, then why are the arguments dx, dy needed?
I think this is fairly easy to solve, but I am having difficulty
understanding what draw_image is supposed to do. If draw_image gets a
transformation matrix, then why are the arguments dx, dy needed?
—
Reply to this email directly or view it on GitHub #4320 (comment)
.
Activity
tacaswell commentedon Apr 10, 2015
attn @mdehoon
WeatherGod commentedon Apr 10, 2015
Interpolation 'none' is essentially the same thing as "nearest". The issue
is whether to let the native backend handle it ('none') or to have it taken
care of in AGG ('nearest'). The results are the same, although it tends to
be that the native backends can handle this more efficiently. I don't
remember why macosx backend wasn't set up to handle 'none', though.
On Fri, Apr 10, 2015 at 9:28 AM, Thomas A Caswell notifications@github.com
wrote:
mdehoon commentedon Apr 12, 2015
I think this is fairly easy to solve, but I am having difficulty understanding what draw_image is supposed to do. If draw_image gets a transformation matrix, then why are the arguments dx, dy needed?
WeatherGod commentedon Apr 13, 2015
I don't know. Maybe @mdboom knows?
On Sun, Apr 12, 2015 at 12:27 AM, mdehoon notifications@github.com wrote:
breedlun commentedon Apr 17, 2015
I have at least one example where 'none' is not the same as 'nearest'. Check out:
http://matplotlib.org/examples/images_contours_and_fields/interpolation_none_vs_nearest.html
WeatherGod commentedon Apr 17, 2015
Ah, right. The PDF backend does treat them differently, I forgot about that.
On Fri, Apr 17, 2015 at 10:20 AM, Benjamin Reedlunn <
notifications@github.com> wrote:
mdboom commentedon Mar 21, 2016
Fixed by #6178