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

Show value in text (no need hover) at Boxplot q1, q3, fences with px.box?

import plotly.express as px
px.box(df, x=“people_num”)


I can hover the mouse to show the value.

However, I want annotation always on because I am going to export into PNG to put into my report. Median, q1, q3, fences, …

How can I show the value ?

Do it is possible with plotly express ? Or I have to manually re-calculate all the value Mean, Median, Q1, Q3, fences and use plotly.graph_objects to manually add annotation ?

1 Like

I would guess that, yes, you will have to re-calculate them and then use something like fig.add_annotation to add them manually. You may perhaps also have look at Statistical annotations in graphs to see if that helps? If you find an easier solution, please let me know. Thanks.