Skip to content

Commit aae559a

Browse files
committed
removed up_hollow and down_hollow from valid marketcolor keywords
1 parent a9f4230 commit aae559a

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/mplfinance/_styles.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,6 @@ def _valid_make_marketcolors_kwargs():
159159

160160
'down' : { 'Default' : None,
161161
'Validator' : lambda value: mcolors.is_color_like(value) },
162-
163-
'up_hollow' : { 'Default' : None,
164-
'Validator' : lambda value: mcolors.is_color_like(value) },
165-
166-
'down_hollow' : { 'Default' : None,
167-
'Validator' : lambda value: mcolors.is_color_like(value) },
168162

169163
'alpha' : { 'Default' : None,
170164
'Validator' : lambda value: ( isinstance(value,float) and
@@ -225,7 +219,6 @@ def make_marketcolors(**kwargs):
225219

226220
up = config['up']
227221
down = config['down']
228-
hollow = config['down']
229222
if up is not None and down is not None:
230223
marketcolors.update(candle=dict(up=up,down=down))
231224
elif up is not None:
@@ -236,10 +229,7 @@ def make_marketcolors(**kwargs):
236229
candle = marketcolors['candle']
237230
candle.update(down=down)
238231
marketcolors.update(down=down)
239-
elif hollow is not None:
240-
candle = marketcolors['candle']
241-
candle.update(hollow=hollow)
242-
marketcolors.update(hollow=hollow)
232+
243233

244234
def _check_and_set_mktcolor(candle,**kwarg):
245235
if len(kwarg) != 1:

0 commit comments

Comments
 (0)