0
fig = df.plot(x='base', y=['info1', 'info2'], template = 'plotly_white', title = "Title")
fig.update_xaxes(title_font=dict(size=18, family='Old Standard TT, serif', color='black'))
fig.update_yaxes(title_font=dict(size=18, family='Old Standard TT, serif', color='black'))
fig.update_layout(titlefont=dict(size =20, color='black', family='Old Standard TT, serif'))

fig.show()

How can I invert the axes so my lowest number appears at the top? This is not a linear graph

4
  • What is df here? Commented Oct 21, 2020 at 15:28
  • 3
    Does this answer your question? How to reverse axis values when using plotly? Commented Oct 21, 2020 at 15:30
  • df is my dataframe Commented Oct 21, 2020 at 15:59
  • fig.update_yaxes(autorange="reversed") is the answer Commented Oct 21, 2020 at 16:03

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.