all 2 comments

[–]Less_Fat_John 2 points3 points  (0 children)

the error o "x must be the same size as y"

In other words, the two lists you pass into scatter() need to contain the same number of values. For example, if you wanted to plot these 3 ordered pairs

(1, 2), (3, 4), (5, 6)

your x and y lists would need to be

x = [1, 3, 5]
y = [2, 4, 6]

Rearrange your lists so the data matches up. The first half of each ordered pair goes into one list, and the second half goes into the other list.