✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Violin Plot Box no attributes

I’m trying to create a violin plot with the box plots inside like the one in the example (https://plot.ly/python/violin/#basic-violin-plot). I have this plot as a subplot and have the following code:
fig = plotly.tools.make_subplots(rows=rows)
fig.append_trace(go.Violin(y=df, name = df_name, box = dict(visible = True))

This is giving me a PlotlyDictKeyError: ‘type’ is not allowed in ‘box’
Valid attribute for ‘box’ at path[‘box’] under parents [‘violin’]:

Substituting ‘box’ for ‘meanline’ (another parameter in the example above) works fine; it’s only the box that is not working. I am able to run the example just fine, but am not sure why as a subplot using go.Violin there are no valid attributes for ‘box’.

Have you tried plotting it as a main plot instead of subplot? I am trying to do the same (box in violin) in a main plot but both box and color attribute have no effect.