Plotly Express Animation-Frame Overlap

I am using an animation frame in my in my plotly express graph but it overlaps with my x-axis.
Is it possible to move my x axis ticks on top of the graph instead of the bottom. Or is it possible to move the animation frame lower or somewhere else on the graph ? Or is it possible to decrease the font size of the x-axis writting?

This is my code:

data = pd.read_csv('file.csv')
fig = px.scatter(data, x = "model", y = "price", color="competitor", hover_data=['Discount'], animation_frame="date")

This is my graph :

1 Like