Python tsplot的颜色图

Python tsplot的颜色图,python,matplotlib,seaborn,Python,Matplotlib,Seaborn,我想在Seaborn中为tsplot的下部上色。我有以下代码: sns.tsplot(时间=时间,数据=数据) 可以给绘图的下部区域上色吗?我尝试使用条形图,但我的数据太大,所以看起来不太对劲。有什么建议吗?尝试使用matplotlib中的fill\u,如下所示: import numpy as np; np.random.seed(22) import seaborn as sns; sns.set(color_codes=True) import matplotlib.pylab as pl

我想在Seaborn中为
tsplot
的下部上色。我有以下代码:

sns.tsplot(时间=时间,数据=数据)


可以给绘图的下部区域上色吗?我尝试使用
条形图
,但我的数据太大,所以看起来不太对劲。有什么建议吗?

尝试使用matplotlib中的
fill\u,如下所示:

import numpy as np; np.random.seed(22)
import seaborn as sns; sns.set(color_codes=True)
import matplotlib.pylab as plt
x = np.arange(31)
data = np.sin(x) + np.random.rand(10, 31) + np.random.randn(10, 1)
sns.tsplot(data=data)
ax = plt.gca()
ax.fill_between(x, np.sin(x), ax.get_ylim()[0], color='r')
plt.show()

噢,太好了。谢谢