✊🏿 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.

    figV.add_trace(go.Violin(y=dfNode['H_SEP'],
                            legendgroup='H_SEP', scalegroup='H_SEP', name='Head Sep',
                            line_color='#B233FF'))  
    figV.update_traces(box_visible=True, meanline_visible=True,points='all')   

image