How to change x-axis label of graph to be multiples of 10?

I am using plotly library to plot my line chart.

Currently my x-axis has a limit from 0 to 10G (10 Billion) with equal divisions / intervals.

fig.update_xaxes(visible=True, range=[0,10000000000])

Is there any way I can change the x-axis label to increase in multiples of 10 like the image below instead of having equal intervals?

enter image description here


If you’re looking for built-in options:


…will give you this:

enter image description here

…instead of this:

enter image description here

Complete code:

import plotly.graph_objects as go
import as px
df ="year == 2007")

fig = go.Figure()

fig.add_trace(go.Scatter(mode="markers", x=df["gdpPercap"], y=df["lifeExp"] ))