hi, <br>i am relatively new to python programming,<br>i am facing the following problem:<br><br>i am tring to simply  obtain data from a file ( "B.txt" ,  data in this file are in single column and floats)<br>and plot a graph between those values and thier index.  ( for example if in file , if at 2nd position valuse is 9.34 ,  x=9.34 and y=1).<br>
.<br>.<br>.<br><i>ln1=open("B.txt","r+")<br>lines5=ln1.readlines()<br>exp=[ ]<br>c1=[ ]<br>for i in range (0,len(lines1)):<br>    f1=lines1[i].split()<br>    c1.append(float(f1[0])) <br>    exp.append(i)     <br>
c1.sort(reverse=1)<br><br>lines=plt.plot(c1,exp,'ro')<br>plt.show() <br></i>.<br>.<br>.<br><br>but every time its showing the following error:<br><br><i><some random value>  is dumped<br>segmentation fault</i><br>
<br><br>can anyone kindly help me out<br><br>thank you.<br><br><br>ankita<br>