|
From: Pierre H. <pie...@cr...> - 2014-03-06 09:49:06
|
Le 05/03/2014 22:37, Asma Riyaz a écrit :
> img= mpimg.imread('/home/asmariyaz/Desktop/mytree.png')
> phyl_ax.imshow(img,interpolation='nearest')
Ok, so here you could try replace 'nearest' by 'bilinear' or 'bicubic'.
I believe those are the most common choices for image resampling
(because when you plot an image and then save it, there is a resampling
involved).
(http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.imshow for
the other options)
Of course, it's also worth playing the dpi argument of savefig, as
suggested by Eric.
best,
Pierre
|