fig, ax = plt.subplots(1,1)
(r_p+1).cumprod().plot(ax=ax)
(r_bench+1).cumprod().plot(ax=ax)
ax.legend(["portfolio", "benchmark"])
change column name when using pandas plot
最新推荐文章于 2023-01-06 10:16:17 发布
fig, ax = plt.subplots(1,1)
(r_p+1).cumprod().plot(ax=ax)
(r_bench+1).cumprod().plot(ax=ax)
ax.legend(["portfolio", "benchmark"])