[Matplotlib-users] multiple plots on single axis

2014-11-27 Thread Bala subramanian
Friends, I want to make multiple graphs on a single axes. As an example, i am pasting below an article where it has been shown. http://www.ncbi.nlm.nih.gov/pubmed/23403925 My plot of interest is *Figure7B*, where multiple distribution are depicted in single plot. I want to make a similar one. Ki

Re: [Matplotlib-users] autocorrelation question

2012-06-19 Thread Bala subramanian
Hi, The input is a parameter termed dipole moment. I want to see how it decays with respect to time. On Tue, Jun 19, 2012 at 11:12 AM, francesco oteri wrote: > Hi bala, > what is the input? How did you calculate it? > > Francesco > > 2012/6/19 Bala subramanian > >>

[Matplotlib-users] autocorrelation question

2012-06-19 Thread Bala subramanian
Friends, I want to plot the autocorrelation of my data as a function of time as given in the following link, with autocorrelation coef in Y axis and Time in x-axis. http://www.itl.nist.gov/div898/handbook/eda/section3/autocopl.htm I used the following code to achieve the same using the acorr func

[Matplotlib-users] wireframe question

2011-11-23 Thread Bala subramanian
Hello, I am trying to make a wireframe plot with the x,y,z values in my data (attached file). I get the following error which i dnt understand. Kindly write me what is going wrong. Traceback (most recent call last): File "test.py", line 14, in ax.plot_wireframe(d1,d2,d3) File "/usr/lib/py

Re: [Matplotlib-users] query on weighted matrix example

2011-09-26 Thread Bala subramanian
Friends, I have solved the problem by myself. I gave if w < 2.0: color = 'red' if 2.1 < w > 4.0: color='blue' So wherever the value there is a value like 2.03 or 2.05, the color was shown as black instead of red/blue. Thanks, Bala On Mon, Sep 26, 2011 at 9:2

[Matplotlib-users] query on weighted matrix example

2011-09-26 Thread Bala subramanian
Friends, In the mpl site, i found the an example code called hinton_demo to plot weighted matrix in the following link. http://matplotlib.sourceforge.net/examples/api/hinton_demo.html?highlight=hinton I used the same script (attached test.py) making a slight modification in the following section

[Matplotlib-users] representing discrete values by colors

2011-06-14 Thread Bala subramanian
Friends, I have a simple array like this data=[0,0,1,1,3,1,0,1,1,3]. I want to make a plot (using pcolor/matshow) by giving distinct color to each integer. Something like green for zero, red for 1 and blue for 3. Your suggestions / any pseudo code would be of great help. Thanks, Bala -

[Matplotlib-users] histogram for discrete data

2011-02-15 Thread Bala subramanian
Friends, I created a histogram plot using data files that have discrete values (sample file attached 'test.dat').However when i view the plot, i see that the bars are not located exactly over the values. For example in the attached figure (test.png), i see a bar (gray) placed between values 1 and 2

Re: [Matplotlib-users] rcParams['figure.dpi'] has no effect?

2011-01-21 Thread Bala subramanian
Daniel, Did you try saving the figure with same dpi ?. Try the following. plt.savefig('name',dpi=300) On Fri, Jan 21, 2011 at 9:08 AM, Daniel Mader < danielstefanma...@googlemail.com> wrote: > Hi, > > I need to create a huge range of plots with need to fit into a report > (OpenOffice or Word). I

[Matplotlib-users] ColorbarBase usage

2011-01-17 Thread Bala subramanian
Friends, I have created a figure (with two rows and two columns) and i drew four contourf plots (A,B,C,D etc). All the four contourf has the same coloring and bounds. I do not want to draw a colorbar() for each of the plots separately but only one colorbar at the bottom of the four plots.Something

Re: [Matplotlib-users] Axes3D:adjusting the parameters of the plot

2011-01-14 Thread Bala subramanian
know how to manipulate the x,y and z ticks intervals for a graph created with Axes3D. On Fri, Jan 14, 2011 at 12:06 PM, Bala subramanian < bala.biophys...@gmail.com> wrote: > Dear Friends, i used the following code to create a 3D plot (attached > figure). I manipulate the appearance

[Matplotlib-users] setting arial bold font

2011-01-13 Thread Bala subramanian
Friends, The journal in which i am planning to send my paper says that the figure and panel labels should be in 'ARIAL' bold. When i try to set the font as arial, i get a warning message. Someone kindly let me know what is the appropriate setting to get the font arial bold. /usr/lib/python2.5/sit

[Matplotlib-users] installation question

2010-10-21 Thread Bala subramanian
Friends, I am using mpl in fedora10. I installed mpl (version 0.98.5.2) with yum previously. Since yum does not upgrade to latest mpl version, i have downloaded the tarball to install from the source. Now i want to install mpl in the same location as previously done by yum (info. given below). 1)

[Matplotlib-users] help on 3d scatter.

2010-10-20 Thread Bala subramanian
Friends, I tried to do a 3d scatter plot. The following is my code. However i dnt know how to set different colors and marker for x, y and z. Someone kindly help in doing the same. I tried to give a sequence of colors as c=['black','red','blue'] but i dnt get what i want. -- im

Re: [Matplotlib-users] contouf and colorbar

2010-10-14 Thread Bala subramanian
wrote: > On Thu, Oct 14, 2010 at 9:50 AM, Bala subramanian < > bala.biophys...@gmail.com> wrote: > >> Dear Ben, >> you are right, contouf() omits the red and blue values without colorbar. >> >> 1) If i call set_under() and set_over() before calling contour

[Matplotlib-users] citation of mpl

2010-09-22 Thread Bala subramanian
Friends, I have mentioned in my research manuscript that plots were generated by 'matplotlib package'. I dnt find the related reference of mpl. Kindly tell me how can i site mpl. Thanks, Bala -- Start uncovering the many a

[Matplotlib-users] Omitting gap values during plotting

2010-09-21 Thread Bala subramanian
Friends, I have a file like below. Where i have data in row 1 to 8, then a gap, then data for row 10-16. I want matplotlib to explicitly consider this gap and not to shift the y values while plotting. How can i achieve this ?. I tried by inserting a string 'None' instead of gap, but i get error.

[Matplotlib-users] removing legend box

2010-08-25 Thread Bala subramanian
Friends, 1) I want to remove the rectangular box around the legend. How to do the same. I apologize if this query had been asked before. 2) reduce the distance (vertical) between two legends in the same plot. Thanks, Bala --

[Matplotlib-users] grid lines at specific coordinates

2010-08-19 Thread Bala subramanian
Friends, I would like to place grid lines (precisely draw lines) at specific (x,y) coordinates. If i am not wrong, grid() function will take only True/False arguments. Someone kindly write me if there is any way to do this. Thanks, Bala ---

Re: [Matplotlib-users] creating figures of exact size

2010-08-17 Thread Bala subramanian
: > > On Aug 17, 2010, at 11:02 AM, Bala subramanian wrote: > > > Friends, > > > > I am trying to make a figure for publication. I am making a double column > figure of 7inch as per journal guidelines. The figure comes out nicely but > the final size of the figure that is

[Matplotlib-users] creating figures of exact size

2010-08-17 Thread Bala subramanian
Friends, I am trying to make a figure for publication. I am making a double column figure of 7inch as per journal guidelines. The figure comes out nicely but the final size of the figure that is saved is not what i have given in 'figsize'. It is 10inch X 5.38 inch. How can i make mpl to create the

[Matplotlib-users] centering xticks in bar plot

2010-07-19 Thread Bala subramanian
Friends, Attached a script test.py and 2 data files using with which i am trying to make a bar plot. The output is coming nice, but the x-ticks are placed at the left edge of the first bar. I want to make the xticks at the center between the two bars to have a better visualization. I dnt get which

[Matplotlib-users] colorbase AttributeError: 'AxesImage' problem

2010-07-13 Thread Bala subramanian
Friends, I tried to incorporate an example script for colorbar given in the following link into my code. http://matplotlib.sourceforge.net/examples/api/colorbar_only.html When i run the program, i get the following error. I didnt use set_ylabel option in my code. I am not getting why this error a

[Matplotlib-users] multiple annotation in one line

2010-07-07 Thread Bala subramanian
Friends 1) Excuse me if this questions is posted already. I have to make 5 to 6 annotations in my figure. Is there any way that i can make all of them in one shot instead of writting a separate line of code for each of them. for instance plot function accepts a series of x,y data. Is it possible w

[Matplotlib-users] annotating in matshow

2009-09-24 Thread Bala subramanian
Friends, I have a matrix which i plotted with matshow as follows and then used text function to write the each value inside the figure by choosing x and y coordinate. I wish to know if there is any easy or more fancy way to do the same. *mat=load('tnz.txt')* In [3]: *tmat=transpose(mat)* In [4]:

[Matplotlib-users] matshow

2009-09-16 Thread Bala subramanian
Friends, I have a matrix data and i used matshow() function to plot. The plot is attached. 1) After plotting the data, i used xticks() function to change the x-axis tick labels from x1 to x12 ( figure attached). Similarly I want to change the y-axis tick labels into as A,B and C, instead of 0,1,

[Matplotlib-users] curve fitting

2009-07-29 Thread Bala subramanian
Friends, I have to define two equations and fit my data on to it. could someone please give me some example on how to do curve fitting using matplotlib. Thanks, Bala -- Let Crystal Reports handle the reporting - Free Crys

[Matplotlib-users] scatter plot

2009-05-19 Thread Bala subramanian
Friends, Someone please suggest me how to make scatter plot with a matrix data such as the one attached. Is is possible to feed a matrix to scatter function directly and plot the value in each row of the matrix. Thanks, Bala test Description: Binary data

[Matplotlib-users] defining a color for a value

2009-05-15 Thread Bala subramanian
Friends, I have a data like the following. I dnt want to plot the data literally as shown below. I want to define a color red for 0, blue for 1 and yellow for 2. Each color represents the properly of the y-values. I want to define colors for values and monitor the color changes with time. I check

Re: [Matplotlib-users] contour overlapping

2009-05-14 Thread Bala subramanian
matrix2 in the upper part and elements > of > matrix1 below the diagonal. This one could be plotted with contour or > contourf. > > Is that what you want? > > best regards Matthias > > On Wednesday 13 May 2009 18:12:53 Bala subramanian wrote: > > Armin, > > I tr

Re: [Matplotlib-users] contour overlapping

2009-05-13 Thread Bala subramanian
Dear Matthias, Thank you for the information. Could you please provide me a small example of such overlapping. Thanks, Bala On Wed, May 13, 2009 at 1:50 PM, Matthias Michler wrote: > Hi Bala, > > On Wednesday 13 May 2009 13:16:17 Bala subramanian wrote: > > Friends, > > &g

[Matplotlib-users] contour overlapping

2009-05-13 Thread Bala subramanian
Friends, I have two matrices of same size. I used contourf to create the countour plots for the two matrices separately. i) I am interested in making one countour plot marking the areas which are different in both the countours or ii) Overlapping one countour over the other, so that i can compa

Re: [Matplotlib-users] installation issue

2009-04-28 Thread Bala subramanian
which version would be my default. Bala On Tue, Apr 28, 2009 at 3:32 PM, Sandro Tosi wrote: > On Tue, Apr 28, 2009 at 15:26, Bala subramanian > wrote: > > Hi, > > I think freetype is already installed in Fedora10. When i search yum as > > I said freetype2 *headers*

Re: [Matplotlib-users] installation issue

2009-04-28 Thread Bala subramanian
wrote: > On Tue, Apr 28, 2009 at 14:46, Bala subramanian > wrote: > > [r...@ramana matplotlib-0.98.5.2]# python setup.py build > > In file included from src/ft2font.cpp:1: > > src/ft2font.h:31: error: ‘FT_Bitmap’ has not been declared > > src/ft2font.h:31: error:

[Matplotlib-users] installation issue

2009-04-28 Thread Bala subramanian
Friends, I installed matplotlib in Fedora10 using yum which installed the version 0.98.1 .I could nt upgrade matplotlib using yum. Hence i downloaded the source and tried to install but i am getting the following error. Kindly write me what is going wrong. [r...@ramana matplotlib-0.98.5.2]# pytho

Re: [Matplotlib-users] warining with ipython

2009-04-28 Thread Bala subramanian
Hi, I was nt running any script of my own. This warning came when i was working on matplotlib-pyplot tutorials (simple plot and multiple line plots). Bala On Mon, Apr 27, 2009 at 10:42 PM, Sandro Tosi wrote: > On Mon, Apr 27, 2009 at 15:18, Bala subramanian > wrote: > > Hi, >

[Matplotlib-users] line properties

2009-04-27 Thread Bala subramanian
Friends, I am going through John Hunter's The Matplotlib User’s Guide. In the user guide, one of the three ways of changing the line properties is given as follows Using set to control line properties >>> l i n e s = p l o t ( t , s1 ) >>> s e t ( l i n e s , ma r k e r s i z e =15 , marker=’d’ ,

Re: [Matplotlib-users] warining with ipython

2009-04-27 Thread Bala subramanian
Hi, Version informations Python 2.5.2 IPython 0.8.4 matplotlib 0.98.1 backend GTKAgg Running on Fedora10 Bala On Mon, Apr 27, 2009 at 2:36 PM, Sandro Tosi wrote: > Hi Bala, > > On Mon, Apr 27, 2009 at 13:40, Bala subramanian > wrote: > > Friends, > > I started pylab w

[Matplotlib-users] warining with ipython

2009-04-27 Thread Bala subramanian
Friends, I started pylab with ipython -pylab After some time, i did In [21]: import matplotlib Warning: Timeout for mainloop thread exceeded switching to nonthreaded mode (until mainloop wakes up again) Why this warning comes ? Even when i exit with ctrl + d, the shell is still remaining. Than

[Matplotlib-users] ploting matrix data

2009-04-08 Thread Bala subramanian
Friends, I have a pairwise comparison of 50 data points. The comparison is based on the mean square deviation between the points. I want to plot this data by specifying different colors for diffrent ranges of mean square deviation. Any suggestion would be of much help to me. I have attached the da

[Matplotlib-users] non-numeric data

2009-04-07 Thread Bala subramanian
Friends, Kindly see the attached small test.dat file. I have make a plot with this data. But my data does nt have numerical values but has characters like B, T etc. So i hve give color codings for these characters and plot the data. Like use yellow for B, red for T etc. Kindly help me to do it wit

[Matplotlib-users] unpacking multiple files

2009-03-31 Thread Bala subramanian
Friends, 1) I want to make a plot of multiple lines. I want to make something like ./multiplot.py 1.dat 2.dat 3.dat .. n.dat All files contain two columns and are of same length. plotfile() and load() do not take list of file but one file name only. In such cases, I want to unpack the x,y va

Re: [Matplotlib-users] histogram

2009-03-30 Thread Bala subramanian
There was a typo in my previous mail. y axis goes scale is more than one when i use normed=1. I am not getting why this happens. On Mon, Mar 30, 2009 at 6:10 PM, Bala subramanian wrote: > > > > Darren, >> But y axis goes scale is than one when i use normed=1. I am not g

Re: [Matplotlib-users] histogram

2009-03-30 Thread Bala subramanian
Darren, > But y axis goes scale is than one when i use normed=1. I am not getting why > this happens. > > > On Mon, Mar 30, 2009 at 5:39 PM, Darren Dale wrote: > >> On Mon, Mar 30, 2009 at 11:25 AM, Bala subramanian < >> bala.biophys...@gmail.com> wrote: >&

[Matplotlib-users] help me to understand please

2009-03-28 Thread Bala subramanian
Friends, In the following. I am not able to understand how this plot.show() works. I have commented the problem in the following examples. >>> plt.plot(x,y,'b-') [] >>> plt.show() *# shows the plot of x Vs y* >>> plt.ylim( (1.5,4.5) ) (1.5, 4.5) >>> plt.show() *# Does nt show the plot* >

[Matplotlib-users] importing data from a file

2009-03-28 Thread Bala subramanian
Friends, Kindly give me some tips on how to import data from a data file to make the plot. Thanks, Bala -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.n

Re: [Matplotlib-users] joined matplotlib today

2009-03-27 Thread Bala subramanian
Dear All, I have to make multiple plot on the same page. Six row and three column. Kindly suggest me some tips to do the same. Bala -- ___ Matplotlib-users mailing list Matplotl

[Matplotlib-users] joined matplotlib today

2009-03-27 Thread Bala subramanian
Dear Friends, I am new to matplotlib. Just started with it. I have some queries, kindly help me to understand the following. i) How are pyplot and pylab are related. Is there any advantage of one over the other. In the matplotlib homepage examples are shown with both pyplot and pylab ii) How can