Skip to content

set_xlim() crashes kernel if interpolation='none' #3091

Closed
@bennettbrowniowa

Description

@bennettbrowniowa

Using matplotlib 1.3.1-3, the following code causes my Python kernel to crash.

img = plt.imread("cat.png")
fig, ax = plt.subplots(1, 3)
ax[0].imshow(img, interpolation='none')
ax[0].set_xlim(135,165) # larger than image
fig.show()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions