8000 Normalized Histogram with Marginal producing the wrong plot · Issue #4426 · plotly/plotly.py · GitHub
[go: up one dir, main page]

Skip to content
Normalized Histogram with Marginal producing the wrong plot #4426
Open
@murk3000

Description

@murk3000

Using plotly.express (px) to plot a Histogram with barnorm = 'percent' and marginal = 'histogram' produces a plot where the barnorm is ignored and the raw counts are plotted. I think the output should be a histogram with barnorm = 'percent' and a marginal histogram with the regular counts.

px.histogram(pd.DataFrame({'x': np.random.normal(0, 1, 100),
                           'col': np.random.choice(['A', 'B'], 100)}), 
             x='x', color='col', barnorm='percent', marginal='histogram')

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogbugsomething brokensev-4cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0