-
Notifications
You must be signed in to change notification settings - Fork 0
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
Use facecolor with axes #21
Conversation
651c96e
to
507a3da
Compare
Appears this feature is only present in |
c2b736b
to
7be2e72
Compare
21178d6
to
2789e75
Compare
Added a version check to determine whether matplotlib 1 or matplotlib 2 behavior should be used. |
2789e75
to
bc10ba9
Compare
Added a version check to choose between using the old |
Uses `facecolor` with `axes` on Matplotlib 2+. On older versions of Matplotlib (e.g. 1), fallback to using `axisbg` instead.
bc10ba9
to
2e12437
Compare
mpl_2_ver = distutils.version.LooseVersion("2") | ||
|
||
fig_axes_kwargs = {} | ||
axcolor_name = "facecolor" if mpl_ver >= mpl_2_ver else "axisbg" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked that this works correctly for dev releases as well. Though it is not really relevant any more.
Apparently the
Axes
attribute,axisbg
, is being deprecated. This switches over to using the suggestedfacecolor
instead.