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
Unexpected behaviour of imshow default interpolation #19838
Artifacts appear when plotting periodic data with discontinuities, i.e. something like x mod 1.0
The bug appears at when render resolution is relatively small comparing to the real resolution of the data (downsampling problem?).
Yes, this is a consequence of the interpolation being done in data space rather than colourspace, so your jumps at 0,1 get interpolated as ~0.5, and show up as a purple line.
There is a bit of a religious war about this among the devs, where some devs think that any interpolation that creates pixels that are not in the colormap is anathema. While of course that is true for interpolation, or smoothing of an image, others of us do not think that is true for downsampling. See #18782 and issues linked therein for more discussion.
Activity
jklymak commentedon Mar 31, 2021
Yes, this is a consequence of the interpolation being done in data space rather than colourspace, so your jumps at 0,1 get interpolated as ~0.5, and show up as a purple line.
There is a bit of a religious war about this among the devs, where some devs think that any interpolation that creates pixels that are not in the colormap is anathema. While of course that is true for interpolation, or smoothing of an image, others of us do not think that is true for downsampling. See #18782 and issues linked therein for more discussion.
QuLogic commentedon Mar 31, 2021
Closing as a duplicate of one of the issues linked to the above PR. I'm not sure which one, but there's no need to have a bunch of these open.