We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 29d82bc + 6c13bc5 commit 25554d8Copy full SHA for 25554d8
src/mplfinance/plotting.py
@@ -512,6 +512,8 @@ def plot( data, **kwargs ):
512
else:
513
ax = panels.at[panid,'axes'][0]
514
515
+ if (apdict["ylabel"] is not None):
516
+ ax.set_ylabel(apdict["ylabel"])
517
518
aptype = apdict['type']
519
if aptype == 'scatter':
@@ -702,7 +704,10 @@ def _valid_addplot_kwargs():
702
704
all([isinstance(v,(int,float)) for v in value]) },
703
705
706
'secondary_y' : { 'Default' : 'auto',
- 'Validator' : lambda value: isinstance(value,bool) or value == 'auto' }
707
+ 'Validator' : lambda value: isinstance(value,bool) or value == 'auto' },
708
+
709
+ 'ylabel' : { 'Default' : None,
710
+ 'Validator' : lambda value: isinstance(value,str) },
711
}
712
713
_validate_vkwargs_dict(vkwargs)
0 commit comments