Skip to content

Conversation

maurosilber
Copy link

This could be a fix for #3769, where the bin width for overlapping histograms is smaller than the actual bin width.

It renames "space" to "width" in so.Hist's calculated properties, and only applies extra scaling to the default width.

A possibly unintended consecuence is that it changes the look for so.Bar(), so.Hist() which used to look like so.Bar(), so.Count():

import seaborn as sns
import seaborn.objects as so

penguins = sns.load_dataset("penguins").dropna()

(
    so.Plot(penguins, x="species")
    .add(so.Bar(), so.Hist(), label="Hist")
    .add(so.Bar(color="C1"), so.Count(), label="Count")
)

image

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

Successfully merging this pull request may close these issues.

1 participant