Assume we have a csv file with a single column. I can plot it with ;
data = np.loadtxt(file)
test = data[:,0]
plot(test)
and it plots test versus the row number (entries). But I want to multiply this row number so that I can plot ;
plot(test,row[i]*25)
I think there should exist a simple way than to arrayize the row number. Any pythonic way to handle this issue ?
numpy.arange. E.g.y = 25 * np.arange(test.size).numpy.indices,numpy.mgrid,numpy.ogrid,numpy.ndindex, andnumpy.ndenumerateare similar functions that are also useful to be aware of.