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() pixelization in matplotlib 2.0.2 but not in 2.0.0 #8723
On Tue, Jun 6, 2017 at 11:23 AM, Benjamin Root ***@***.***> wrote:
There have been some bugfixes, IIRC, mostly related to the handling of
NaNs and masked points. Are there any in your data?
On Tue, Jun 6, 2017 at 10:54 AM, diogoff ***@***.***> wrote:
> I'm plotting the same image (a numpy float32 array) with imshow(...,
> interpolation='bilinear') on matplotlib 2.0.0 and 2.0.2.
>
> See the following figure:
> [image: matplotlib]
> <https://cloud.githubusercontent.com/assets/7391155/26835386/20980584-4ad0-11e7-8719-83beec5126d5.png>
>
> On 2.0.0 the image is perfectly smooth. However, on 2.0.2 there are
> noticeable pixelization effects.
>
> Has the imshow() routine changed?
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#8723>, or mute the
> thread
> <https://github.com/notifications/unsubscribe-auth/AARy-PvqiPeroQYvc-abNuKTIJk7LZINks5sBWhDgaJpZM4Nxdr0>
> .
>
Activity
WeatherGod commentedon Jun 6, 2017
WeatherGod commentedon Jun 6, 2017
diogoff commentedon Jun 6, 2017
Here is a MWE:
WeatherGod commentedon Jun 6, 2017
diogoff commentedon Jun 6, 2017
The pixelization appears around the negative values which are being clipped by vmin=0.
WeatherGod commentedon Jun 6, 2017
diogoff commentedon Jun 6, 2017
It seems that when those (negative) pixels are being clipped, the interpolation no longer works as it used to.
Thanks for your help.
WeatherGod commentedon Jun 6, 2017
dstansby commentedon Jun 15, 2017
Yep, this bisects to 1a7c4ef
tacaswell commentedon Jun 17, 2017
This is a duplicate of #8631 which has a proposed solution in the comments.
tacaswell commentedon Aug 31, 2017
Closed by #8966