✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
📊 Dash 2.0 is Arriving. Register here.

How to set the number of decimal places on a Violin plot

I have a working violin plot but the hover text has a large number of decimal places making it tricky to read quickly. Is it possible to set the number of decimal places (2 ideally)?

Is it possible to remove the ‘Head Sep’ from the purple boxes text too?
The code below has taken from the Plotly Website so I might not need all of it - I’m not showing the legend for instance but I don’t know what the Legend & Scale group does.

                            legendgroup='H_SEP', scalegroup='H_SEP', name='Head Sep',
    figV.update_traces(box_visible=True, meanline_visible=True,points='all')