Skip to content

Commit a93c950

Browse files
Merge pull request #516 from donbing/master
allow a list to be passed as `mpl_base_style` kwarg
2 parents 7a3f2ca + 2d22a74 commit a93c950

File tree

3 files changed

+92
-26
lines changed

3 files changed

+92
-26
lines changed

examples/styles.ipynb

Lines changed: 89 additions & 22 deletions
Large diffs are not rendered by default.

src/mplfinance/_styles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _valid_make_mpf_style_kwargs():
6666

6767
'base_mpl_style': { 'Default' : None,
6868
'Description' : 'matplotlib style to use as base of new mplfinance style',
69-
'Validator' : lambda value: isinstance(value,str) }, # and is in plt.style.available
69+
'Validator' : lambda value: isinstance(value,(str,list))}, # and is in plt.style.available
7070

7171
'marketcolors' : { 'Default' : None,
7272
'Description' : 'market colors object, from `mpf.make_market_colors()`',

src/mplfinance/_version.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
2-
version_info = (0, 12, 8, 'beta', 10)
1+
version_info = (0, 12, 8, 'beta', 11)
32

43
_specifier_ = {'alpha': 'a','beta': 'b','candidate': 'rc','final': ''}
54

65
__version__ = '%s.%s.%s%s'%(version_info[0], version_info[1], version_info[2],
7-
'' if version_info[3]=='final' else _specifier_[version_info[3]]+str(version_info[4]))
6+
'' if version_info[3]=='final' else _specifier_[version_info[3]]+str(version_info[4]))

0 commit comments

Comments
 (0)