[yt-svn] commit/yt: sskory: Fixing a sign error in eps_writer.py. The colorbar was becoming

Bitbucket commits-noreply at bitbucket.org
Fri Mar 30 06:18:24 PDT 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/8a53a0ed1d5f/
changeset:   8a53a0ed1d5f
branch:      yt
user:        sskory
date:        2012-03-29 19:28:40
summary:     Fixing a sign error in eps_writer.py. The colorbar was becoming
mis-aligned in the y-axis when the shrink factor was different than 1.
affected #:  1 file

diff -r 6b1e902e3e254030b8c41061c222c2b1a152cb9a -r 8a53a0ed1d5f7c0eeba45812973cf4f3b1e17e45 yt/visualization/eps_writer.py
--- a/yt/visualization/eps_writer.py
+++ b/yt/visualization/eps_writer.py
@@ -475,7 +475,7 @@
 
         cmap_im = pyx.bitmap.image(imsize[0], imsize[1], "RGB", cm_string)
         if orientation == "top" or orientation == "bottom":
-            imorigin = (imorigin[0] - shift[0], imorigin[1] - shift[1])
+            imorigin = (imorigin[0] - shift[0], imorigin[1] + shift[1])
             self.canvas.insert(pyx.bitmap.bitmap(imorigin[0], imorigin[1], cmap_im,
                                                  width=-size[0], height=size[1]))
         else:

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