[Yt-svn] yt-commit r1181 - trunk/yt/reason
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Tue Feb 24 08:09:10 PST 2009
Author: mturk
Date: Tue Feb 24 08:09:08 2009
New Revision: 1181
URL: http://yt.spacepope.org/changeset/1181
Log:
Aspect ratio problems in reason (v1) are a bit better now. We mandate
aspect='equal' and we set the default center to 0.501, rather than 0.5, because
evidently right now the slicing is not terribly forgiving.
Modified:
trunk/yt/reason/Notebook.py
Modified: trunk/yt/reason/Notebook.py
==============================================================================
--- trunk/yt/reason/Notebook.py (original)
+++ trunk/yt/reason/Notebook.py Tue Feb 24 08:09:08 2009
@@ -166,8 +166,8 @@
self.mw = mw
self.parent_id = parent_id
- self.figure = be.matplotlib.figure.Figure((1,1))
- self.axes = self.figure.add_subplot(111)
+ self.figure = be.matplotlib.figure.Figure()
+ self.axes = self.figure.add_subplot(111, aspect='equal')
self.status_bar = status_bar
self.SetupControls()
@@ -354,7 +354,7 @@
self.weight_field = weight_field
self.axis = axis
if center is None:
- center = [0.5, 0.5, 0.5]
+ center = [0.501, 0.501, 0.501]
self.center = center
self.AmDrawingCircle = False
self.circles = []
More information about the yt-svn
mailing list