[yt-svn] commit/yt: ngoldbaum: Merged in mzingale/yt-mz (pull request #2054)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Mar 23 14:02:44 PDT 2016


1 new commit in yt:

http://link.bitbucket.org/wf/click?upn=8USRlNyft-2BCzk2l4Ywl6gDx2lD2xxoS9E7MwXb2SMR-2BXcTD42YocdnOFkyGBVHOUR-2FqCq1Gi9H1h-2BhLu-2B3M2KKx5JTMOQvZ1PWjx3mKeLMo-3D_ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27ALkZ-2FOlRGe2t8iFe5XkGHihMRAuE1GkKYtMDHbnLb7itCpqgHL-2BkvOFvEBagtjSkMXfTe0mD462hgnye4XaXLTxDXau-2BCKQ3HQnVLfzpHn7KX37Y629mAMkqQj0tBLA79LFKeLok3ZXse0mnQ1WNoFyPeA-2B-2BDW8fcoYgTg-2BJN8JuUK6vyIYGB9sA8gW5cmT4k-3D
Changeset:   66d8895f15b3
Branch:      yt
User:        ngoldbaum
Date:        2016-03-23 21:02:37+00:00
Summary:     Merged in mzingale/yt-mz (pull request #2054)

two minor bugs in save_annocated
Affected #:  1 file

diff -r 5aa19c934e12f875ab4eea98257acc81430096a2 -r 66d8895f15b34d51b001a3618ff9c89f5bc765a9 yt/visualization/volume_rendering/scene.py
--- a/yt/visualization/volume_rendering/scene.py
+++ b/yt/visualization/volume_rendering/scene.py
@@ -406,7 +406,8 @@
     def _show_mpl(self, im, sigma_clip=None, dpi=100):
         import matplotlib.pyplot as plt
         s = im.shape
-        self._render_figure = plt.figure(1, figsize=(s[1]/dpi, s[0]/dpi))
+        self._render_figure = plt.figure(1, figsize=(s[1]/float(dpi), s[0]/float(dpi)))
+        self._render_figure.clf()
         ax = plt.gca()
         ax.set_position([0, 0, 1, 1])

Repository URL: http://link.bitbucket.org/wf/click?upn=8USRlNyft-2BCzk2l4Ywl6gDx2lD2xxoS9E7MwXb2SMR-2BI0v8SbQq-2B8-2FZaaHaJT85r_ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27ALkZ-2FOlRGe2t8iFe5XkGHihMRAuE1GkKYtMDHbnLb7ikxWcPJmLh-2B09-2BSfXE1p6hvLu3aOOEqDfBxKUb36wkxbgCexDA-2Bag3Dx-2F8zUUNtA0C5t0KX5NsYjxlQ4qy9wyK44APQvCcPArNExtrijPgZj6Fqdc52BIVrE6002OmaXUEQpnzNQF3R83oQaEzAojbg-3D

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-svn-spacepope.org/attachments/20160323/7299881e/attachment.htm>


More information about the yt-svn mailing list