How to change xaxis tick values & keep equal spacing throughout the graph

I’m trying to create a line plot with non-linear x-axis values. What I’m looking to do is make it so the ticks on the x-axis are equal to each other. Look at the pictures for what I mean.
Currently this is what plotly does:

What I want plotly to do:
undefined - Imgur (1)

Solution: Convert that column you want to a string instead of an int. I used this:
df = df[‘col’].astype(str)

1 Like