Changing Y-axis font size in Plotly Express

Hello. Iā€™m wondering, is there a way to modify the Y-axis font size of horizontal bar chart in plotly express ?

Example: I want to change the font size of my rows.

I think you can do:

fig.update_layout(
yaxis = dict(
tickfont = dict(size=20)))
3 Likes

Thanks @adamschroeder ! That should do the work.

If somebody is still interested, you could also try:

fig.update_yaxes({"tick_font_size": 20})

Hi,

Is there a way to automatically change the yaxis scale to become slightly bigger? The default setting is too short for my use case. I am not able to set a range since it is for data that changes with user input.