我可以在1个图中的每个数据帧系列中绘制许多子图,如下所示:
import pandas as pd
NG = [1,2,3,4,5,6,7]
dflist = []
l = [1,2,3,4,5,6]
b = [6,5,4,3,2,1]
for n in NG:
df = pd.DataFrame(l)
dflist.append(df)
df2 = pd.DataFrame(b)
dflist.append(df2)
df = pd.concat(dflist, axis = 1)
df.plot(grid = 1, subplots = True, layout = (7,2), sharey = True)
print(df)
我如何结合每一秒的情节?它应该是这样的: