Nathan
Without seeing the code, my guess is that you're sending a normal list to the setData function, but it is expecting a numpy array. You can check by wrapping it in a np.array(x)
and/or np.array(y)
. If the list is composed of integers you may also need to further specify that the data type should be float, e.g. np.array(x, dtype=np.float)
If that isn't it, post some code and I'll have a look.
All the best,