numpy - Putting multiple columns of data into one array, python -


so have set of data has singular column x data , multiple columns y data, of form.

x_title     y_title_1    y_title_2   y_title_3 ....   y_title_n data_x1     data_y2      data_y3     data_y4          data_yn ....        ....         ....        ....      ....   .... 

i trying graph data, different plot each y_data_i, on same graph.

i using numpy arrays, matplotlib , scipy. , genfromtxt read in. imagine best way put each column array, there array y_data_1,y_data_2 , on. have no idea how this? know how read them in singularly, set data, so:

y_data_1=data[0:number_of_rows,1]  

however don't know how code way hundreds of columns.

the basic plotting function be:

import matplotlib.pyplot plt x = data[0] y in data[1:]:     plt.plot(x, y) plt.show() 

where data[0] first column, , data[1:] except first column.

see here more options.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -