x
and y
are lists of 50 elements. SV
is a list with 4 elements.
I would like to plot only the elements of x,y that are in positions SV. For example if SV=[3,7,10,15]
I would like to plot only x[3],x[7],x[10],x[15]
and y[3],y[7],y[10],y[15]
.
Thus, the list SV indicate the position (not the value) of x,y that I want to plot. I tried something like this but I didn't manage to do it:
plt.scatter(x[SV],y[SV])