Skip to content

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

Closed

Description

@kennysong

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.

Activity

  1. added this to the milestone on Apr 10, 2015
  2. tacaswell commented on Apr 10, 2015

    @tacaswell
    Member
  3. WeatherGod commented on Apr 10, 2015

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

  4. mdehoon commented on Apr 12, 2015

    @mdehoon
    Contributor

    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?

  5. WeatherGod commented on Apr 13, 2015

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

  6. breedlun commented on Apr 17, 2015

    @breedlun
    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

  7. WeatherGod commented on Apr 17, 2015

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

  8. mdboom commented on Mar 21, 2016

    @mdboom
    Member

    Fixed by #6178

  9. modified the milestones: , on Mar 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions