In the course of answering a question by Alan Isaac, I saved some
figures at different dpi values and hit a bug with png output:
imshow(rand(100,100))
gcf().savefig('f200.png', dpi=200)
This results in tick labels that overlap the image, and it gets worse
with higher dpi. PS backend output is
I noticed this bug last week (and forgot to send it in until now.. I
know.. shame on me..).
Here is the workaround (responsible for my laziness):
figure(dpi=500)
# make a figure
savefig(dpi=500)
That is, as long as the figure and savefig dpi match, it looks
alright. Otherwise, the tick