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

<<attachment: pierre_haessig.vcf>>

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to