Help with Axis Formatting

Iā€™m trying to use a scatterplot with a known lower and upper bound for the x axis but when using update_xaxes, my x axis comes out compressed and not distributed along the whole graph, as seen in the picture. Iā€™m not sure what the issue is since my update_yaxes works fine. Here is the code Iā€™m using:
fig.update_xaxes(range=[0, 60])
fig.update_yaxes(range=[el_lower_display_lim, el_upper_display_lim])

Hi @emmay !

Welcome on the forum! :tada:

My guess is that your 'Time' data is not numerical but string, try to convert it with .astype(float) or .astype(int).
Let me know how that goes!

1 Like

Changing it to a float worked! Thank you!

1 Like