blurry

Prevent anti-aliasing for imshow in matplotlib

Prevent anti-aliasing for imshow in matplotlib Question: When I use matplotlib’s imshow() method to represent a small numpy matrix, it ends up doing some smoothing between pixels. Is there any way to disables this? It makes my figure’s misleading in presentations. The figure above is a 28×28 image, so I should be seeing large squares …

Total answers: 2