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

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Sun Apr 25 19:46:01 PDT 2010


Author: mturk
Date: Sun Apr 25 19:46:00 2010
New Revision: 1699
URL: http://yt.enzotools.org/changeset/1699

Log:
Fixing a mistake in the image_line callback.  Need to feed in xs and ys, not
(x1, y1) and (x2, y2).



Modified:
   trunk/yt/raven/Callbacks.py

Modified: trunk/yt/raven/Callbacks.py
==============================================================================
--- trunk/yt/raven/Callbacks.py	(original)
+++ trunk/yt/raven/Callbacks.py	Sun Apr 25 19:46:00 2010
@@ -366,13 +366,13 @@
         plot._axes.lines = [l for l in plot._axes.lines if id(l) not in self._ids]
         p1 = self.convert_to_pixels(plot, self.p1)
         p2 = self.convert_to_pixels(plot, self.p2)
-        print p1, p2
+        px, py = (p1[0], p2[0]), (p1[1], p2[1])
 
         # Save state
         xx0, xx1 = plot._axes.get_xlim()
         yy0, yy1 = plot._axes.get_ylim()
         plot._axes.hold(True)
-        ii = plot._axes.plot(p1, p2, **self.plot_args)
+        ii = plot._axes.plot(px, py, **self.plot_args)
         self._ids.append(id(ii[0]))
         # Reset state
         plot._axes.set_xlim(xx0,xx1)



More information about the yt-svn mailing list