📜  使用多个数据框 python 创建绘图 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:14.694000             🧑  作者: Mango

代码示例1
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

scenarios = ['scen-1', 'scen-2']

fig, ax = plt.subplots()

for index, item in enumerate(scenarios):
    df = pd.DataFrame({'A' : np.random.randn(4)})
    print df
    df.plot(ax=ax)

plt.ylabel('y-label')
plt.xlabel('x-label')
plt.title('Title')
plt.show()