Skip to content

Violin span argument not working #5035

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aleferna12 opened this issue Feb 13, 2025 · 0 comments
Closed

Violin span argument not working #5035

aleferna12 opened this issue Feb 13, 2025 · 0 comments

Comments

@aleferna12
Copy link

aleferna12 commented Feb 13, 2025

From what I understand, the 'span' argument when combined with 'spanmode="hard"' should determine where the distribution is cut-off. This is not working, see below:

df = px.data.iris()
go.Figure(go.Violin(
    y=df["petal_length"],
))

Image

df = px.data.iris()
go.Figure(go.Violin(
    y=df["petal_length"],
    spanmode="hard",
    span=[0, 3]
))

Image

As you can see, the plot is cut-off at the data ranges (0 - 6.9) instead of using the provided span values.

This is with plotly == 5.20.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant