[Yt-svn] yt-commit r809 - trunk/yt/raven

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Tue Sep 30 22:19:58 PDT 2008


Author: mturk
Date: Tue Sep 30 22:19:57 2008
New Revision: 809
URL: http://yt.spacepope.org/changeset/809

Log:
Minor fixes for axes limits in particles



Modified:
   trunk/yt/raven/Callbacks.py

Modified: trunk/yt/raven/Callbacks.py
==============================================================================
--- trunk/yt/raven/Callbacks.py	(original)
+++ trunk/yt/raven/Callbacks.py	Tue Sep 30 22:19:57 2008
@@ -133,8 +133,8 @@
         goodI = na.where( (self.particles_x < x1) & (self.particles_x > x0)
                         & (self.particles_y < y1) & (self.particles_y > y0)
                         & (self.particles_z < z1) & (self.particles_z > z0))
-        particles_x = (self.particles_x[goodI] - x0) * (xx1-xx0)/(x1-x0)
-        particles_y = (self.particles_y[goodI] - y0) * (yy1-yy0)/(y1-y0)
+        particles_x = (self.particles_x[goodI] - x0) * (xx1-xx0)/(x1-x0) + xx0
+        particles_y = (self.particles_y[goodI] - y0) * (yy1-yy0)/(y1-y0) + yy0
         if not self.color_field: particles_c = self.color
         else: particles_c = self.particles_c[goodI]
         plot._axes.hold(True)



More information about the yt-svn mailing list