[yt-svn] commit/yt: 2 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Fri Jun 24 14:32:16 PDT 2016


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/874ccaf79d0a/
Changeset:   874ccaf79d0a
Branch:      yt
User:        ngoldbaum
Date:        2016-06-15 18:53:09+00:00
Summary:     fix compatibility with matplotlib 1.4.3 and earlier
Affected #:  1 file

diff -r 9bcee915d549eb251157fbe2b82c5b5e8fb783b9 -r 874ccaf79d0abc99115ea4302fcfd751d1d1ddb5 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()


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