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 50e816e + 25554d8 commit ed7be21Copy full SHA for ed7be21
src/mplfinance/plotting.py
@@ -515,6 +515,8 @@ def plot( data, **kwargs ):
515
else:
516
ax = panels.at[panid,'axes'][0]
517
518
+ if (apdict["ylabel"] is not None):
519
+ ax.set_ylabel(apdict["ylabel"])
520
521
aptype = apdict['type']
522
if aptype == 'scatter':
@@ -711,7 +713,10 @@ def _valid_addplot_kwargs():
711
713
all([isinstance(v,(int,float)) for v in value]) },
712
714
715
'secondary_y' : { 'Default' : 'auto',
- 'Validator' : lambda value: isinstance(value,bool) or value == 'auto' }
716
+ 'Validator' : lambda value: isinstance(value,bool) or value == 'auto' },
717
+
718
+ 'ylabel' : { 'Default' : None,
719
+ 'Validator' : lambda value: isinstance(value,str) },
720
}
721
722
_validate_vkwargs_dict(vkwargs)
0 commit comments