Skip to content

bivariate displot with kind="hist" ignores common_norm=False if hue is not assigned #2465

@mgab

Description

@mgab

Somehow similar to #2377, but for kind='hist' and with common_norm=False being ignored.

If I understand it well, passing common_norm=False to sns.distplot should produce plots with independent "z" scale. While this is the behaviour for kde plots, it seems to be ignored for bivariate histograms unless hue is also specified.

Test case:

x, y = np.random.randn(2, 200)
z = [0] * 150 + [1] * 50
sns.displot(x=x, y=y, col=z, kind="hist", cbar=True, common_norm=False)
sns.displot(x=x, y=y, col=z, hue=z, kind="hist", cbar=True, common_norm=False)

Running seaborn version 0.11.1
(I tried to look for other (open or closed) related issues, hope not duplicating them)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions