大家好,提前感谢你们的帮助。我已经使用python中的mplfinance模块绘制了一个烛台图,并且在我的绘图中添加了一些hline。问题是,我不知道如何将hlines值添加到图表的yaxis中
这是我的密码:
mpf.plot(hloc,hlines=dict(hlines=clusters_centers,colors=['blue'],linestyle='-.'), ylabel='Price', type='candle', style='binance')
这就是我的情节
candlestick + hlines
Tags:
尝试以下操作:设置} 或^{} 标记hline:
returnfig=True
以获得access to the Figure and Axes objects,然后使用matplotlib的^{相关问题 更多 >
编程相关推荐