简体   繁体   English

Matplotlib / Mplfinance - 如何更改线宽

[英]Matplotlib / Mplfinance - how to change line width

maybe someone knows what I need add here to change line width?也许有人知道我需要在这里添加什么来改变线宽?

mpf.plot(df4, type='candle', style='yahoo', volume=True, hlines=[12,4],  )

Vertical and horizontal lines can be set in dictionary format.可以字典格式设置垂直和水平线。 Line widths are specified in tuple format.线宽以元组格式指定。

mpf.plot(df, 
         type='candle',
         style='yahoo',
         volume=True, 
         hlines=dict(hlines=[12,4], linewidths=(2,3.5)))

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM