问题描述
我不知道为什么我的情节看起来像这样:
行下方有不想要的填充 我只想显示没有填充的行.下面的代码.请注意,如果我在Spyder或cmd中运行,也会发生这种情况. 这是有根据的猜测,因为您没有提供数据(请参见最小,完整和可验证的示例),但我认为阴影来自于您为同一个x值拥有多个y值的事实. 如果您查看 sns.lineplot()的文档,您将阅读: 有几个选项可以删除阴影: 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. 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: There are several options to remove the shading: 这篇关于为什么在我的jupyter笔记本中,此线图中的线下方填充了seaborn/matplotlib?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!import matplotlib.pyplot as plt
import seaborn as sns
df_ard= pd.read_csv(pathx, parse_dates=['Date'] )
plt.figure(figsize=(15,8))
sns.lineplot(x="Date", y='As',
hue="Location",
data=df_ard,
palette='bright')
ci=None
estimator=None
import matplotlib.pyplot as plt
import seaborn as sns
df_ard= pd.read_csv(pathx, parse_dates=['Date'] )
plt.figure(figsize=(15,8))
sns.lineplot(x="Date", y='As',
hue="Location",
data=df_ard,
palette='bright')
ci=None
estimator=None