-
Notifications
You must be signed in to change notification settings - Fork 658
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
Bug Report: #279
Comments
Thanks. Looks correct. Do you want to make the change and submit a PR ? This is embarassing. Clearly i never tested |
Hmm. I'm running some tests, and it appears the fix may not be as simple as
Definitely the |
The fix looks more like this: if isinstance(axlist,mpl_axes.Axes):
axlist.mpfstyle = style
elif isinstance(axlist,np.ndarray):
for ax in axlist.flatten():
ax.mpfstyle = style
else:
raise TypeError('Unexpected type ('+str(type(axlist))+') '+
'returned from "matplotlib.figure.Figure.subplots()"')
return axlist |
Describe the bug
When calling Subplots() method for Mpf_Figure() class, the for loop that sets the axes styles fails.
To Reproduce
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:
The text was updated successfully, but these errors were encountered: