-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
Description
Plotly version: 6.3.0
Follow-up to #1634 (never resolved).
When using sided (split) violins with box=dict(visible=True)
, the boxplot whiskers are drawn at the inner edge of each half-box, rather than being centered as in a normal boxplot.
This makes the left and right whiskers appear extremely close together, which creates significant visual confusion.
Example from #1634 (Advanced Violin Plot example with box=dict(visible=True)
):
Normal (non-sided) violins for comparison:
Possible cause:
The boxplots may be internally split in half to fit each half-violin, shifting the “center” used for whisker rendering to the midpoint between the halves.
Possible solutions:
- Preferred: Render each half-boxplot with whiskers centered over its own half-violin.
- Alternative: Allow configurable spacing between the halves to reduce whisker overlap.