我试图显示沿 x 轴链接的 4 个图形,其中 1 个使用 mpf 显示,其余的是 plt,但由于某些我无法理解的原因,它们无法及时匹配,输入数据来自同一来源。以下是代码:
fig, (ax1,ap1,ap2,ap3) = plt.subplots(4, 1, sharex=True)
mpf.plot(df_1m,type='candle',style='sas',ax=ax1,volume=False)
ap1.plot(df_1m['rsi'], label= '1m')
ap2.plot(df_5m['rsi'], label = '5m')
ap3.plot(df_h1['rsi'], label = '1h')
ap1.legend()
ap2.legend()
ap3.legend()
mpf.show()
提前感谢您的回答