【发布时间】:2021-11-01 04:00:00
【问题描述】:
我想在彩色背景上绘制一个时间序列,显示冬季是什么时候。
dates = pd.date_range("2000-01-01", "2004-01-01", freq="D")
df = pd.DataFrame({"y": np.random.random(len(dates))}, index=dates)
f, ax = plt.subplots(figsize=(12, 4))
ax.plot(df.index, df["y"])
我想通过突出冬季(“DJF”)来引导视线
【问题讨论】:
标签: python matplotlib