Hey guys this is my first time posting here and hopefully this question isn't too trivial. I tried looking for a solution to this but couldn't find what I wanted.
I have this very simple code here which plots xy line graph
x = [1,2,3,10,11]
y = [1,2,3,4,5]
plt.plot(x,y)
plt.xticks(x)
The graph then looks like this: Graph
What I want to do is compress the x axis such that the spacing between each point is the same. E.g have the space between 3 to 10 be the same as the space between 1 to 2.
Is there a way to do this? Thanks!