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’.