Skip to content

Violin Span Calculation Issue #2631

Closed
Closed
@kmui2

Description

@kmui2

Regarding this line of code in plotly.js:

var n = Math.ceil(dist / (Math.min(bandwidthDflt, bandwidth) / 3));

Why is taking the minimum (Math.min(bandwidthDflt, bandwidth)) needed here? Should it just not take the min and use only bandwidth? I can see a problem where I defined trace.bandwidth and don't want to use bandwidthDflt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions