设置第二条 y 轴,然后将 ax 传入 df.plot
ax1 = df.plot(x='x1', y='y1', figsize=(20,4))
ax2 = ax1.twinx()
df.plot(x='x1', y='y2', figsize=(20,4), color='orange', ax=ax2)
```
-
Pandas
4 引用 • 2 回帖
欢迎来到黑客派
注册 关于