[yt-svn] commit/yt: devinsilvia: changed 'plot' function in command_line.py to follow the new functionality of plot_window.py when a width is not specified -- the width is based off of the domain properties.

Bitbucket commits-noreply at bitbucket.org
Wed Aug 1 08:23:47 PDT 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/ce2300150e89/
changeset:   ce2300150e89
branch:      yt
user:        devinsilvia
date:        2012-08-01 17:20:33
summary:     changed 'plot' function in command_line.py to follow the new functionality of plot_window.py when a width is not specified -- the width is based off of the domain properties.
affected #:  2 files

diff -r f5bf25f2ca64e874fece921aa360bbd7e3f07ca8 -r ce2300150e8937d548365510a1915ff143835ba2 yt/utilities/command_line.py
--- a/yt/utilities/command_line.py
+++ b/yt/utilities/command_line.py
@@ -1222,7 +1222,7 @@
         if unit is None:
             unit = 'unitary'
         if args.width is None:
-            width = (1.0, 'unitary')
+            width = None
         else:
             width = (args.width, args.unit)
 


diff -r f5bf25f2ca64e874fece921aa360bbd7e3f07ca8 -r ce2300150e8937d548365510a1915ff143835ba2 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -149,7 +149,7 @@
     bounds = [center[x_dict[axis]]-width[0]/2,
               center[x_dict[axis]]+width[0]/2,
               center[y_dict[axis]]-width[1]/2,
-              center[y_dict[axis]]+width[1]/2] 
+              center[y_dict[axis]]+width[1]/2]
     return (bounds,center)
 
 def GetOffAxisBoundsAndCenter(normal, center, width, pf, unit='1'):

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