是否可以用颜色填充两条阈值线(线1和线2)外部并在y轴上受distplot绘制的KDE曲线限制的区域(在我的应用中为3σ)
import pylab as pl
import seaborn as sns
#plotting the two lines
p1 = pl.axvline(x=line1,color='#EF9A9A')
p2 = pl.axvline(x=line2,color='#EF9A9A')
#plotting the PDF
sns.distplot(stat, hist=True,color='#388E3C')
Run Code Online (Sandbox Code Playgroud)