Re: [Matplotlib-users] imshow for .png- low resultion

2014-03-06 Thread Pierre Haessig
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

Re: [Matplotlib-users] imshow for .png- low resultion

2014-03-06 Thread Asma Riyaz
Yes the interpolation had to be set to nearest or bicubic or bilinear for it to function properly!! Thanks a lot!! Asma On Thu, Mar 6, 2014 at 4:48 AM, Pierre Haessig pierre.haes...@crans.orgwrote: Le 05/03/2014 22:37, Asma Riyaz a écrit : img=

[Matplotlib-users] imshow for .png- low resultion

2014-03-05 Thread Asma Riyaz
Hi I am trying to merge a heat map(matplotlib) with a tree(.png), but the .png does not plot as needed or for that matter cannot be seen easily. Here is my code: ### CODE cmap = mpl.cm.hot if outlier==0: threshold=1 else: threshold=outlier-0.01 fig =

Re: [Matplotlib-users] imshow for .png- low resultion

2014-03-05 Thread Paul Hobson
Olga Botnivik is doing some work with these types of figures in her fork of the seaborn project. Example here: http://nbviewer.ipython.org/gist/olgabot/8341784 Link to the PR in github: https://github.com/mwaskom/seaborn/pull/73 Those might be a good place to start. On Wed, Mar 5, 2014 at

Re: [Matplotlib-users] imshow for .png- low resultion

2014-03-05 Thread Pierre Haessig
Hi Asma, Le 05/03/2014 21:19, Asma Riyaz a écrit : I am trying to merge a heat map(matplotlib) with a tree(.png), but the .png does not plot as needed or for that matter cannot be seen easily. Here is my code: ### CODE [] img = ht_ax.imshow(data, cmap=cmap,

Re: [Matplotlib-users] imshow for .png- low resultion

2014-03-05 Thread Asma Riyaz
Sorry I somehow forgot to paste the imshow call to plot the .png image(pasted the entire code again), I am trying the different interpolation parameters in the mean time as suggested by Pierre data=np.array(full_len) cmap = mpl.cm.hot if outlier==0: threshold=1 else:

Re: [Matplotlib-users] imshow for .png- low resultion

2014-03-05 Thread Eric Firing
On 2014/03/05 11:37 AM, Asma Riyaz wrote: Sorry I somehow forgot to paste the imshow call to plot the .png image(pasted the entire code again), I am trying the different interpolation parameters in the mean time as suggested by Pierre data=np.array(full_len) cmap = mpl.cm.hot if