query regarding file handling.

2009-11-12 Thread ankita dutta
hi all, i have a file of 3x3 matrix of decimal numbers(tab separated). like this : 0.020.380.01 0.040.320.00 0.030.400.02 now i want to read 1 row and get the sum of a particular row. but when i am trying with the following code, i am getting errors : *code*: " ln1=open(

display of data-figures in histogram

2009-10-27 Thread ankita dutta
hi all, I am working on some graph stuffs and stuck at a point. I am trying to plot a histogram using simple : *import matplotlib.pyplot as plt . . plt.hist(x,bins=10,histtype='bar') plt.show * but i want to know 1) what is the value of a particular bar in histogram and also want to print in on

Re: segmentation fault

2009-10-15 Thread ankita dutta
way.. thanx all for advices it out. ankita On Thu, Oct 15, 2009 at 5:10 PM, David Cournapeau wrote: > On Thu, Oct 15, 2009 at 7:46 PM, ankita dutta > wrote: > > thanx david, > > > > yes ,i am using matplotlib for plotting graph. > > i am using this lines in

Re: segmentation fault

2009-10-15 Thread ankita dutta
hi chris, i am using matplotlib for plotting graph, as following: "import matplotlib.pyplot as plt" can you kindly tell me how to fix this problem(crashing) ? On Thu, Oct 15, 2009 at 3:36 PM, Chris Rebert wrote: > On Thu, Oct 15, 2009 at 2:14 AM, ankita dutta > wrote:

Re: segmentation fault

2009-10-15 Thread ankita dutta
ta On Thu, Oct 15, 2009 at 3:35 PM, David Cournapeau wrote: > On Thu, Oct 15, 2009 at 6:14 PM, ankita dutta > wrote: > > > is dumped > > segmentation fault > > > > > > It looks like you are using matplotlib, and matplotlib is the one > likely to segfault

segmentation fault

2009-10-15 Thread ankita dutta
hi, i am relatively new to python programming, i am facing the following problem: i am tring to simply obtain data from a file ( "B.txt" , data in this file are in single column and floats) and plot a graph between those values and thier index. ( for example if in file , if at 2nd position valu

equation of a graph

2009-09-14 Thread ankita dutta
hii.. i am working with graphs, my problem is to find the equation for any given graph. i tried with *"polyfit" function*. but that only give me the slope and y-axis intercept. hence *"best-fit line" * , but i want to find *"best-fit curve" * how can i find that ? ankita -- http://mail.py