Announcing Dash Bio 1.0.0 🎉 : a one-stop-shop for bioinformatics and drug development visualizations.

Plotly express python imshow version text_auto argument doesn't exist

Hi,

I am trying to create an annotated correlation matrix using plotly 5.5.0 in python.

fig = px.imshow(final_df.corr(), color_continuous_scale=‘BuPu’, text_auto=True)

But I am getting the following error:
TypeError: imshow() got an unexpected keyword argument ‘text_auto’

Docs says that this is how to get the text annotation working.
Any ideas why I a getting this error?
Thanks.

@Stormcloud
Are you sure you have Plotly 5.5.0, because it works with both text_auto=True and text_auto='.2f':

import plotly.express as px
fig = px.imshow(corr.values, color_continuous_scale='BuPu', text_auto=True)
fig.update_layout(width=500, height=500)

pximshTrue
replacing text_auto=True, with text_auto=’.2f’` I got this plot:
pximsh2f

I reinstalled 5.5.0 to be sure and now it works.
Thank you so much.
And thanks for the formatting tip!