Description
Problem
I found interpolations for imshow and image antialiasing to be unclear because for natural images it is fair to use hanning interpolations due to the frequency spectrum for natural images but for something like a matrix of random Bernoulli this can lead to aliasing effects and other interpolations schemes such as nearest would be more appropriate. In general, this also gives a good example for why we should use matshow instead for imshow to visualise matrices.
Aliasing effects for hanning interpolations
No aliasing effects for nearest interpolations
Links:
- https://matplotlib.org/stable/gallery/images_contours_and_fields/interpolation_methods.html
- https://matplotlib.org/stable/gallery/images_contours_and_fields/image_antialiasing.html
Suggested Improvement
Include an example such as the one above of when nearest interpolations or matshow would be more appropriate then imshow with hanning.
Code to reproduce the aliasing effects:
https://colab.research.google.com/drive/1rnIc1mRPLz9nCsmg6Kt4G5erR3_A6dGv?usp=sharing