t = np.arange(10)
dt = np.dtype([('t', int), ('pos', [('x', float), ('y', float)])])
alldata = np.array(zip(t, zip(x, y)), dtype=dt)
alldata
alldata['t']
alldata['pos']
alldata['pos']['x']
Is there a standard way to store XY data in python?