So say I'm trying to create a 100-sample dataset that follows a certain line, maybe 2x+2. And I want the values on my X-axis to range from 0-1000. To do this, I use the following.
X = np.random.random(100,1) * 1000
Y = (2*X) + 2
data = np.hstack(X,Y)
Maybe I'm missing something, but have you tried adding
Y? You can even write
and do it all at once (and without repeating the array size).