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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Sun Mar 23 17:08:03 PDT 2014


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/7e5ff0c3d923/
Changeset:   7e5ff0c3d923
Branch:      yt-3.0
User:        ngoldbaum
Date:        2014-03-24 00:01:34
Summary:     Only call _toggle_[axes, colorbar] if we want to hide the axes and colorbar
Affected #:  1 file

diff -r ecda2dbe9b1e08c99bb4e4ce27bce50f98b620b4 -r 7e5ff0c3d923527776cf086ee35cfd2fcd370782 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -796,8 +796,11 @@
 
             self.run_callbacks(f)
 
-            self.plots[f]._toggle_axes(draw_axes)
-            self.plots[f]._toggle_colorbar(draw_colorbar)
+            if draw_axes is False:
+                self.plots[f]._toggle_axes(draw_axes)
+
+            if draw_colorbar is False:
+                self.plots[f]._toggle_colorbar(draw_colorbar)
 
             if self._font_color is not None:
                 ax = self.plots[f].axes


https://bitbucket.org/yt_analysis/yt/commits/429c90c92716/
Changeset:   429c90c92716
Branch:      yt-3.0
User:        MatthewTurk
Date:        2014-03-24 01:07:56
Summary:     Merged in ngoldbaum/yt/yt-3.0 (pull request #745)

Only call _toggle_[axes, colorbar] if we want to hide the axes and colorbar
Affected #:  1 file

diff -r 4646247054fb995eb10d56ea41af868479098bdb -r 429c90c927167ac77c26af8b185b8a9d8c3c9bcc yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -796,8 +796,11 @@
 
             self.run_callbacks(f)
 
-            self.plots[f]._toggle_axes(draw_axes)
-            self.plots[f]._toggle_colorbar(draw_colorbar)
+            if draw_axes is False:
+                self.plots[f]._toggle_axes(draw_axes)
+
+            if draw_colorbar is False:
+                self.plots[f]._toggle_colorbar(draw_colorbar)
 
             if self._font_color is not None:
                 ax = self.plots[f].axes

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