Black Lives Matter. Please consider donating to Black Girls Code today.

How to get x values on top instead of bottom the graph?

import plotly.graph_objects as go

oldSPT=[0,0,11,0,12,0,5,0,6,0,7,0,9,0,7,0,18,0,22,32,40,30,25,0,32,33]

Depth=[4,6,6.5,7.5,8,9,9.5,10.5,11,12.5,13,14,14.5,15.5,16,17,17.5,18.5,19,20.5,22,23.5,25,26,26.5,28]

fig = go.Figure(data=go.Scatter(x=oldSPT, y=Depth, mode=‘lines+markers’),layout = go.Layout(
title=“SPT VS DEPTH”),
)
fig.update_xaxes(title_text=‘OldSPT’, range=(-10,50))

fig.update_yaxes(title_text=‘Depth’, ticksuffix=‘m’, range=(40,0))

fig.show()