2012/5/29 Fabien Lafont :
> Thx Francesco, it works great!
>
> What for the .T at the end of genfromtxt?
genfromtxt with usecols=(0,1) return an array with 2 columns. with .T
you transpose it so that you can save it in two variables. For more
info, e.g.,
http://docs.scipy.org/doc/numpy/reference/
Thx Francesco, it works great!
What for the .T at the end of genfromtxt?
2012/5/29 Francesco Montesano :
> Dear Fabien
>
> 2012/5/29 Fabien Lafont :
>> Hello everyone,
>>
>> I have a problem. I have to look at many plots. Usely I do it like that:
>>
>> from pylab import*
>>
>> X1 = genfromtxt("
Dear Fabien
2012/5/29 Fabien Lafont :
> Hello everyone,
>
> I have a problem. I have to look at many plots. Usely I do it like that:
>
> from pylab import*
>
> X1 = genfromtxt("Myfile.dat", usecols =(0))
> Y1 = genfromtxt("Myfile.dat", usecols =(1))
> plot(X1,Y1, label ="My curve")
>
> show()
>
>
Hello everyone,
I have a problem. I have to look at many plots. Usely I do it like that:
from pylab import*
X1 = genfromtxt("Myfile.dat", usecols =(0))
Y1 = genfromtxt("Myfile.dat", usecols =(1))
plot(X1,Y1, label ="My curve")
show()
But the problem is when I have many plots I have to copy pa