Is there a way to set the font size of auto_text? I have a bar plot with auto_text=True
. Some of the bar labels have 4 digits and some have only 3 and Plotly adjust the text size based on the number of the digits. Is there a way to set it so in both cases the font size will be the same size?
Here is an example:
in the bar, fix the size of the font:
insidetextfont=dict(size=14)
And/or, try setting a minimum font size:
fig.update_layout(
uniformtext_minsize=12,
uniformtext_mode=‘show’,
)