Why has seaborn/matplotlib filled below the line in this lineplot in my jupyter notebook?

后端 未结 1 1441
囚心锁ツ
囚心锁ツ 2020-12-22 13:43

I don\'t know why my plot looks like this:

I only want to display lines with no fill. Code below. Note this also happens if I run in Spyder or cmd.

相关标签:
1条回答
  • 2020-12-22 14:06

    This is an educated guess, since you don't provide your data (see Minimal, Complete, and Verifiable example), but I believe the shading comes from the fact that you have several y-values for the same x-value.

    If you look at the documentation for sns.lineplot(), you'll read:

    By default, the plot aggregates over multiple y values at each value of x and shows an estimate of the central tendency and a confidence interval for that estimate.

    There are several options to remove the shading:

    • if you want to continue aggregating the data, but remove the shading, use ci=None
    • if you want to not aggregate the data, then use estimator=None
    0 讨论(0)
提交回复
热议问题