[Matplotlib-users] Spacing between grid spaces

2014-10-31 Thread Asma Riyaz
Hi, I have made a plot with grid arranged in 2 rows and 5 columns. I need to provide some spacing between the 3 heat maps so that the color bars don't overlap with the adjacent plots but at the same time I need 0 spacing between grid 1(tree),2(genome diagram) and 3(1st heat map). How can I

[Matplotlib-users] Adjusting sub plot sizes

2014-05-12 Thread Asma Riyaz
Hi, I have generated a heat map along side a tree with gridspec. The issue is that I want the tree with smaller dimensions and heat map should be in a square dimension, adjusting height ratios and width ration only helps reduce tree and the heat map dimensions increase. Here is my code:

[Matplotlib-users] Color bar extents

2014-03-06 Thread Asma Riyaz
Hi, I am stuck at setting the color bar minimum and maximum values, according to what I found I need to set ticks to a numpy linspace array. Here is my code: * threshold=1.01fig = plt.figure(figsize=(25,25))

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= mpimg.imread('/home/asmariyaz/Desktop

[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 Asma Riyaz
/asmariyaz/Desktop/heatmap/'+file_handle+'.pdf',bbox_inches='tight') On Wed, Mar 5, 2014 at 3:27 PM, Pierre Haessig pierre.haes...@crans.orgwrote: 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

[Matplotlib-users] Adding image to a plot

2014-03-01 Thread Asma Riyaz
Hi, I am trying to insert a .png image to the right side of the plot and following the code mentioned here:Combine picture and plot with Python Matplotlibhttp://stackoverflow.com/questions/3765056/combine-picture-and-plot-with-python-matplotlib Here is what I have tried: import numpy as npfrom