I've made a list of tuples (each represents a 2D point), and then I want to plot it by using pyplot. So my problem is that I can't get only x coordinats by slicing the list. Here is the code I'm using
points = [(1,2), (3,4), (5,6)]
plt.plot(points[:][0], points[:][1], 'o')
If I'd like to print
in: print(points[:][0])
out: (1, 2)
Do you have any idea how to get list of first tuples element?