File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -550,8 +550,9 @@ def serialize_plotly_figure(x: BaseFigure) -> object:
550
550
group_traces , has_group_labels = _split_violin_groups (trace )
551
551
552
552
if group_traces is not None :
553
- # NOTE(tim): detremine if we need to
554
- # set violinmode to overlay
553
+ # note(tim): determine if we need to
554
+ # set violinmode to overlay or group to
555
+ # avoid group name offsets issues
555
556
if has_group_labels :
556
557
violin_layout_mode = "group"
557
558
elif violin_layout_mode != "group" :
@@ -582,9 +583,6 @@ def serialize_plotly_figure(x: BaseFigure) -> object:
582
583
583
584
res ["data" ] = processed_traces
584
585
585
- # NOTE(tim): set violinmode to overlay to avoid
586
- # label offset issues if it's not a group label
587
- # case
588
586
if violin_layout_mode == "overlay" :
589
587
res .setdefault ("layout" , {})["violinmode" ] = "overlay"
590
588
You can’t perform that action at this time.
0 commit comments