Skip to content

Commit 78e2efc

Browse files
bring in sync with matplotlib/mplfinance master
1 parent 2390349 commit 78e2efc

File tree

2 files changed

+6
-31
lines changed

2 files changed

+6
-31
lines changed

src/mplfinance/_styles.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,15 +209,15 @@ def _valid_make_marketcolors_kwargs():
209209
vkwargs = {
210210
'up' : { 'Default' : None,
211211
'Description' : '',
212-
'Validator' : lambda value: mcolors.is_color_like(value) },
212+
'Validator' : lambda value: _mpf_is_color_like(value) },
213213

214214
'down' : { 'Default' : None,
215215
'Description' : '',
216-
'Validator' : lambda value: mcolors.is_color_like(value) },
216+
'Validator' : lambda value: _mpf_is_color_like(value) },
217217

218218
'hollow' : { 'Default' : None,
219219
'Description' : '',
220-
'Validator' : lambda value: mcolors.is_color_like(value) },
220+
'Validator' : lambda value: _mpf_is_color_like(value) },
221221

222222
'alpha' : { 'Default' : None,
223223
'Description' : '',
@@ -232,19 +232,19 @@ def _valid_make_marketcolors_kwargs():
232232
'Description' : '',
233233
'Validator' : lambda value: isinstance(value,dict)
234234
or isinstance(value,str)
235-
or mcolors.is_color_like(value) },
235+
or _mpf_is_color_like(value) },
236236

237237
'ohlc' : { 'Default' : None,
238238
'Description' : '',
239239
'Validator' : lambda value: isinstance(value,dict)
240240
or isinstance(value,str)
241-
or mcolors.is_color_like(value) },
241+
or _mpf_is_color_like(value) },
242242

243243
'volume' : { 'Default' : None,
244244
'Description' : '',
245245
'Validator' : lambda value: isinstance(value,dict)
246246
or isinstance(value,str)
247-
or mcolors.is_color_like(value) },
247+
or _mpf_is_color_like(value) },
248248

249249
'vcdopcod' : { 'Default' : False,
250250
'Description' : '',

src/mplfinance/_utils.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,31 +1444,6 @@ def _tline_lsq(dfslice,tline_use):
14441444
return _construct_aline_collections(alines, dtix)
14451445

14461446

1447-
def _display_formetted_kwargs_table(kwargs_dict: dict):
1448-
"""
1449-
Displays through stdout the provided kwargs dict along with each
1450-
one of the discriptions and default values.
1451-
1452-
Parameters
1453-
--------------
1454-
kwargs_dict : dict
1455-
Dictionary containing the kwargs in the format (kwarg, default, description)
1456-
"""
1457-
1458-
# TODO must be defined the best way to place it in the API
1459-
# (either inside the 'plot' method or some other auxiliary
1460-
# method)
1461-
1462-
# prints header of the table
1463-
print('=' * 120)
1464-
print("{:<30} {:<15} {}".format('kwarg', 'Default', 'Description'))
1465-
print('=' * 120)
1466-
1467-
for kwarg, info in kwargs_dict.items():
1468-
print(f'{kwarg:30} {str(info["Default"]):15} {info["Description"]}')
1469-
print('-' * 120)
1470-
1471-
14721447
from matplotlib.ticker import Formatter
14731448
class IntegerIndexDateTimeFormatter(Formatter):
14741449
"""

0 commit comments

Comments
 (0)