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
imshow() producing "inverted" colors since 3.0.3 #14293
Activity
ImportanceOfBeingErnest commentedon May 21, 2019
Not sure if this was intentional in #13405, so marking as Release Crititical.
tacaswell commentedon May 21, 2019
This looks like a regression to me. I don't think the colors are inverted, I think one of the channels is getting color mapped....
jklymak commentedon May 21, 2019
Yeah basically we dropped support for PIL arrays, and we apparently never had tests for them...
cyclehome commentedon May 22, 2019
???
3.1.0 documentation for Axes.imshow() says for the first parameter:
However, if PIL support is dropped indeed, is this the intended way of doing it now:
plt.imshow(np.array(list(img.convert('RGBA').getdata())).reshape(img.height, img.width, 4))Or is there a shorter way?
jklymak commentedon May 22, 2019
Sorry didn’t mean to say we meant to drop support, just that we did inadvertently.
efiring commentedon May 25, 2019
@anntzer I suspect this is something related to your #13405, and you will quickly see how to fix it.