I am looking for a way to guarantee that in matplotlib's imshow, all pixels are visible in the resulting figure.
I use imshow to depict recurrence plots, where I need to be able to see fine lines of 1px thickness, because they can indicate something interesting going on.
Within Jupyter notebook, imshow is printed in the given figsize, and if that figsize is too small, small lines in the plot can disappear. How can I ensure that matplotlib and jupyter notebook do not to resize the image, but show all pixels?


interpolation=Noneorinterpolation='nearest'when callingimshow. Not sure if this is your problem though. Can you maybe please show an exemplary plot which makes the problem easier to understand? - Solvaloufigsizeanddpion the figure. - busybear