Skip to content

Commit 748e6d0

Browse files
committed
STICKLINE width 参数类型改为 float
1 parent bb3b917 commit 748e6d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hikyuu/draw/drawplot/matplotlib_draw.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ def RGB(r: int, g: int, b: int):
858858
return f"#{r:02x}{g:02x}{b:02x}"
859859

860860

861-
def STICKLINE(cond: Indicator, price1: Indicator, price2: Indicator, width: int = 2.0,
861+
def STICKLINE(cond: Indicator, price1: Indicator, price2: Indicator, width: float = 2.0,
862862
empty: bool = False, color='m', alpha=1.0, kdata=None, new=False, axes=None):
863863
"""在满足cond的条件下,在 price1 和 price2 之间绘制一个宽度为 width 的柱状图。
864864
@@ -868,7 +868,7 @@ def STICKLINE(cond: Indicator, price1: Indicator, price2: Indicator, width: int
868868
cond (Indicator): 条件表达式,用于确定是否绘制柱状线
869869
price1 (Indicator): 第一个价格
870870
price2 (Indicator): 第二个价格
871-
width (int, optional): 柱状宽度. Defaults to 2.0.
871+
width (float, optional): 柱状宽度. Defaults to 2.0.
872872
empty (bool, optional): 空心. Defaults to False.
873873
kdata (_type_, optional): 指定的上下文K线. Defaults to None.
874874
new (bool, optional): 在新窗口中绘制. Defaults to False.

0 commit comments

Comments
 (0)