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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Jul 15 14:14:14 PDT 2013


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/3f54afe48d06/
Changeset:   3f54afe48d06
Branch:      yt
User:        ngoldbaum
Date:        2013-07-15 20:32:36
Summary:     Fixing .show() for plot window plots.

Canvas was deleted after showing up in a pyflakes review.  I've added
a comment explaining why we need to create a dummy variable.
Affected #:  1 file

diff -r f1da09f71bbb45215639285c3071695b55e2e6bf -r 3f54afe48d064a59b25e8fc7e496641412136b22 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -1068,12 +1068,15 @@
 
     def _send_zmq(self):
         try:
-            # pre-IPython v0.14
+            # pre-IPython v1.0
             from IPython.zmq.pylab.backend_inline import send_figure as display
         except ImportError:
-            # IPython v0.14+
+            # IPython v1.0+
             from IPython.core.display import display
         for k, v in sorted(self.plots.iteritems()):
+            # Due to a quirk in the matplotlib API, we need to create
+            # a dummy canvas variable here that is never used.
+            canvas = FigureCanvasAgg(v.figure)
             display(v.figure)
 
     def show(self):


https://bitbucket.org/yt_analysis/yt/commits/2303e938a22a/
Changeset:   2303e938a22a
Branch:      yt
User:        ngoldbaum
Date:        2013-07-15 21:10:47
Summary:     Adding a NOQA comment to silence a flake8 warning.
Affected #:  1 file

diff -r 3f54afe48d064a59b25e8fc7e496641412136b22 -r 2303e938a22ace1beb284d56b4ab719472cabcb5 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -1076,7 +1076,7 @@
         for k, v in sorted(self.plots.iteritems()):
             # Due to a quirk in the matplotlib API, we need to create
             # a dummy canvas variable here that is never used.
-            canvas = FigureCanvasAgg(v.figure)
+            canvas = FigureCanvasAgg(v.figure)  # NOQA
             display(v.figure)
 
     def show(self):

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