data = genfromtxt('test', names=['x', 'y'])
x = data['x']
y = data['y']
columnsize = int(len(x) / 6)
ax = plt.subplot(111)
for i in range(columnsize):
    ax.plot(x[i * 6:(i + 1) * 6], y[i * 6:(i + 1) * 6])
plt.show()
Plotting data from CSV files using matplotlib