[yt-svn] commit/yt: xarthisius: Merged in ngoldbaum/yt (pull request #2234)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Jun 24 14:32:13 PDT 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/cc4cf45b51d6/
Changeset: cc4cf45b51d6
Branch: yt
User: xarthisius
Date: 2016-06-24 21:32:02+00:00
Summary: Merged in ngoldbaum/yt (pull request #2234)
fix compatibility with matplotlib 1.4.3 and earlier
Affected #: 1 file
diff -r 27783a435b496c47db10e1a1f5f5f1485ab2bcf1 -r cc4cf45b51d65ea9588a01e12df7c4e0f7a476e6 yt/funcs.py
--- a/yt/funcs.py
+++ b/yt/funcs.py
@@ -981,6 +981,8 @@
style_name = 'classic'
try:
import matplotlib.style
- return matplotlib.style.context(style_name, after_reset=after_reset)
+ if style_name in matplotlib.style.available:
+ return matplotlib.style.context(style_name, after_reset=after_reset)
except ImportError:
- return dummy_context_manager()
+ pass
+ return dummy_context_manager()
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list