Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow a list to be passed as mpl_base_style kwarg #516

Merged
merged 7 commits into from
May 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 89 additions & 22 deletions examples/styles.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/mplfinance/_styles.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def _valid_make_mpf_style_kwargs():

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

'marketcolors' : { 'Default' : None,
'Description' : 'market colors object, from `mpf.make_market_colors()`',
Expand Down
5 changes: 2 additions & 3 deletions src/mplfinance/_version.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

version_info = (0, 12, 8, 'beta', 10)
version_info = (0, 12, 8, 'beta', 11)

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

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