Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

plotly 6.1.2.violinmode='group' does not work #5221

Open
Assignees
Labels
P1needed for current cycle bugsomething broken regressionthis used to work
@junjiecai

Description

(Environment):
Plotly Version: 6.1.2
Python Version: 3.13.2
Operating System: macOS (Seqonia 15.2)

When using the violinmode='group', it just behave like violinmode='overlay'

Code to reproduce, just use the grouped violin plot example from official documentation

mport plotly.graph_objects as go
import pandas as pd
df = pd.read_csv("https://raw.githubusercontent.com/plotly/datasets/master/violin_data.csv")
fig = go.Figure()
fig.add_trace(go.Violin(x=df['day'][ df['sex'] == 'Male' ],
 y=df['total_bill'][ df['sex'] == 'Male' ],
 legendgroup='M', scalegroup='M', name='M',
 line_color='blue')
 )
fig.add_trace(go.Violin(x=df['day'][ df['sex'] == 'Female' ],
 y=df['total_bill'][ df['sex'] == 'Female' ],
 legendgroup='F', scalegroup='F', name='F',
 line_color='orange')
 )
fig.update_traces(box_visible=True, meanline_visible=True)
fig.update_layout(violinmode='group')
fig.show()

Expected Behavior:

Image

Actual Behavior:
In 6.1.2, "group" give the same result with "overlay"

Image

Additional Notes:
After I downgrade to 6.0.1, the same code works fine

Metadata

Metadata

Assignees

Labels

P1needed for current cycle bugsomething broken regressionthis used to work

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /