seaborn icon indicating copy to clipboard operation
seaborn copied to clipboard

histplot(... element='step', fill=False) skips first and last vertical line

Open JanHomann opened this issue 3 years ago • 2 comments

When plotting a histogram with element='step' and fill=False the resulting step plot is not closed to zero. Seaborn version is 0.11.1, matplotlib version 3.4.2.

df = pd.DataFrame(data=np.random.randn(100))
sns.histplot(data=df, element='step', fill=False)

When setting Fill=True it works as expected.

image

JanHomann avatar May 15 '21 18:05 JanHomann

I run into the same problem today. Is there a workaround for this?

PeterPasdzierny avatar Jan 25 '24 16:01 PeterPasdzierny

same here

hchau630 avatar Mar 27 '24 16:03 hchau630