Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyplot.imshow() "None" interpolation is not supported on Mac OSX #4320

Closed
kennysong opened this issue Apr 10, 2015 · 7 comments
Closed

Pyplot.imshow() "None" interpolation is not supported on Mac OSX #4320

kennysong opened this issue Apr 10, 2015 · 7 comments

Comments

@kennysong
Copy link

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.

@tacaswell tacaswell added this to the unassigned milestone Apr 10, 2015
@tacaswell
Copy link
Member

attn @mdehoon

@WeatherGod
Copy link
Member

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:

attn @mdehoon https://github.com/mdehoon


Reply to this email directly or view it on GitHub
#4320 (comment)
.

@mdehoon
Copy link
Contributor

mdehoon commented 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
Copy link
Member

I don't know. Maybe @mdboom knows?

On Sun, Apr 12, 2015 at 12:27 AM, mdehoon notifications@github.com wrote:

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)
.

@breedlun
Copy link
Contributor

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
Copy link
Member

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:

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


Reply to this email directly or view it on GitHub
#4320 (comment)
.

@mdboom
Copy link
Member

mdboom commented Mar 21, 2016

Fixed by #6178

@QuLogic QuLogic modified the milestones: 2.0 (style change major release), unassigned Mar 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants