Bug Report:
Describe the bug
When calling Subplots() method for Mpf_Figure() class, the for loop that sets the axes styles fails.
To Reproduce
fig = mplfinance.figure() fig.subplots(nrows=2,ncols=1) Error: ~\site-packages\mplfinance\_mplwraps.py in subplots(self, *args, **kwargs) 110 self.mpfstyle = style --> 111 if ax in axlist: 112 ax.mpfstyle = style 113 return fig, axlist NameError: name 'ax' is not defined
Expected behavior
Should return a list of axes with ax.mpfstyle = style attribute
Correction
Change line 111 in _mplwraps.py from
if ax in axlist:
to:
for ax in axlist: