x=np.array([0,1,1,2]) y=np.array([0,0,0,1]) plot1(y,x)
If this example is plotted, the plot consists of two lines (while the x/y arrays have for points each, but the two middle points are the same). If the user then uses the cursor and clicks into that middle point, this red square cannot be moved by the key arrows. This should be an issue due to the same points in the array.
Maybe there is an easy fix for this?