[Numpy-discussion] Good way to develop numpy as popular choice!

2012-06-21 Thread bob tnur
Hi all numpy fun;) This question is already posted in stackoverflow by some people, I am just thinking that numpy python will do this with trick;) I guess numpy will be every ones choice as its popularity increases. The question is herein: http://stackoverflow.com/questions/10074270/how-can-i-find-

[Numpy-discussion] convert any non square matrix in to square matrix using numpy

2012-06-18 Thread bob tnur
Hi, how I can convert (by adding zero) of any non-square numpy matrix in to square matrix using numpy? then how to find the minimum number in each row except the zeros added(for making square matrix)? ;) ___ NumPy-Discussion mailing list NumPy-Discussion@

[Numpy-discussion] numpy array in networkx graph?

2012-06-13 Thread bob tnur
I have M is numpy matrix with 0's& 1's. I want to color the nodes with different colors. can anyone give me a hint on the following code? import network as nx import pylab as plt G=nx.Graph(M) # M is numpy matrix ,i.e:type(M)=numpy.ndarray for i in xrange(len(M)): tt=P[i,:].sum() if

[Numpy-discussion] numpy array in networkx graph?

2012-06-12 Thread bob tnur
can anyone give me a hint on the following code? import network as nx import pylab as plt G=nx.Graph(M) # M is numpy matrix ,i.e:type(M)=numpy.ndarray for i in xrange(len(M)): tt=P[i,:].sum() if tt==1: G.add_node(i,color='blue') elif tt==2: G.add_node(i,colo

Re: [Numpy-discussion] numpy arrays

2012-06-09 Thread bob tnur
> > Hi every body! > I have a &b numpy arrays > a=np.loadtxt('çm1.txt', dtype=np.float, skiprows=2,usecols=[1]) > b=np.loadtxt('çm1.txt', dtype=('x', np.float64), skiprows=2,usecols=[2]) > > how to save multiple files like cm1.txt,cm2.txt,cm3.txt etc and to > produce their corresponding outputs