xdata=[-1,  0,    3, 1,    5,  6, 10,  8];
ydata=[-2,  0.5,  4, 1.5,  8,  6, 2,   3];

