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
最新推荐文章于 2024-01-26 15:54:53 发布
fig, ax = plt.subplots(1,1)
(r_p+1).cumprod().plot(ax=ax)
(r_bench+1).cumprod().plot(ax=ax)
ax.legend(["portfolio", "benchmark"])