[Yt-svn] yt-commit r1447 - trunk/yt/raven
silvia at wrangler.dreamhost.com
silvia at wrangler.dreamhost.com
Mon Sep 14 15:17:19 PDT 2009
Author: silvia
Date: Mon Sep 14 15:17:19 2009
New Revision: 1447
URL: http://yt.spacepope.org/changeset/1447
Log:
Added a fix that correctly sets the aspect ratio for a projection when user defined xlim and ylim are used.
Modified:
trunk/yt/raven/PlotTypes.py
Modified: trunk/yt/raven/PlotTypes.py
==============================================================================
--- trunk/yt/raven/PlotTypes.py (original)
+++ trunk/yt/raven/PlotTypes.py Mon Sep 14 15:17:19 2009
@@ -353,6 +353,7 @@
aspect=aspect, picker=True, origin='lower')
else:
self.image.set_data(buff)
+ if self._axes.get_aspect() != aspect: self._axes.set_aspect(aspect)
if self.do_autoscale:
self.norm.autoscale(na.array((newmin,newmax)))
self._reset_image_parameters()
More information about the yt-svn
mailing list