[yt-svn] commit/yt-doc: 3 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Fri Feb 22 08:03:26 PST 2013


3 new commits in yt-doc:

https://bitbucket.org/yt_analysis/yt-doc/commits/c3da2a623388/
changeset:   c3da2a623388
user:        ngoldbaum
date:        2013-02-20 21:46:23
summary:     Centering on the center of the box, this puts the galaxy at the center.
affected #:  1 file

diff -r cf2a0d00c9c298c2291382f403417af8c32906c1 -r c3da2a623388ea17edca6344ed590c611f736f06 source/cookbook/aligned_cutting_plane.py
--- a/source/cookbook/aligned_cutting_plane.py
+++ b/source/cookbook/aligned_cutting_plane.py
@@ -6,7 +6,7 @@
 # Create a 1 kpc radius sphere, centered on the max density.  Note that this
 # sphere is very small compared to the size of our final plot, and it has a
 # non-axially aligned L vector.
-sp = pf.h.sphere("max", (15.0, "kpc"))
+sp = pf.h.sphere("center", (15.0, "kpc"))
 
 # Get the angular momentum vector for the sphere.
 L = sp.quantities["AngularMomentumVector"]()


https://bitbucket.org/yt_analysis/yt-doc/commits/07a4de19678f/
changeset:   07a4de19678f
user:        ngoldbaum
date:        2013-02-20 21:48:12
summary:     Updating simple_off_axis_projection to match the cutting plane example.
affected #:  1 file

diff -r c3da2a623388ea17edca6344ed590c611f736f06 -r 07a4de19678fae96a540b3eefad39e3d73d88a00 source/cookbook/simple_off_axis_projection.py
--- a/source/cookbook/simple_off_axis_projection.py
+++ b/source/cookbook/simple_off_axis_projection.py
@@ -6,7 +6,7 @@
 # Create a 1 kpc radius sphere, centered on the max density.  Note that this
 # sphere is very small compared to the size of our final plot, and it has a
 # non-axially aligned L vector.
-sp = pf.h.sphere("max", (15.0, "kpc"))
+sp = pf.h.sphere("center", (15.0, "kpc"))
 
 # Get the angular momentum vector for the sphere.
 L = sp.quantities["AngularMomentumVector"]()
@@ -14,5 +14,5 @@
 print "Angular momentum vector: %s" % (L)
 
 # Create an OffAxisSlicePlot on the object with the L vector as its normal
-p = OffAxisProjectionPlot(pf, L, "Density", [0.5,0.5,0.5], (25, "kpc"))
+p = OffAxisProjectionPlot(pf, L, "Density", sp.center, (25, "kpc"))
 p.save()


https://bitbucket.org/yt_analysis/yt-doc/commits/b7284c9b19d1/
changeset:   b7284c9b19d1
user:        MatthewTurk
date:        2013-02-22 17:03:23
summary:     Merged in ngoldbaum/yt-doc (pull request #83)

Small updates to cutting plane and off axis projection cookbook recipes
affected #:  2 files

diff -r f115d10758f79d1780cc7335e4571a3e68446303 -r b7284c9b19d10f6e769120e55bc15061f22e48a8 source/cookbook/aligned_cutting_plane.py
--- a/source/cookbook/aligned_cutting_plane.py
+++ b/source/cookbook/aligned_cutting_plane.py
@@ -6,7 +6,7 @@
 # Create a 1 kpc radius sphere, centered on the max density.  Note that this
 # sphere is very small compared to the size of our final plot, and it has a
 # non-axially aligned L vector.
-sp = pf.h.sphere("max", (15.0, "kpc"))
+sp = pf.h.sphere("center", (15.0, "kpc"))
 
 # Get the angular momentum vector for the sphere.
 L = sp.quantities["AngularMomentumVector"]()

diff -r f115d10758f79d1780cc7335e4571a3e68446303 -r b7284c9b19d10f6e769120e55bc15061f22e48a8 source/cookbook/simple_off_axis_projection.py
--- a/source/cookbook/simple_off_axis_projection.py
+++ b/source/cookbook/simple_off_axis_projection.py
@@ -6,7 +6,7 @@
 # Create a 1 kpc radius sphere, centered on the max density.  Note that this
 # sphere is very small compared to the size of our final plot, and it has a
 # non-axially aligned L vector.
-sp = pf.h.sphere("max", (15.0, "kpc"))
+sp = pf.h.sphere("center", (15.0, "kpc"))
 
 # Get the angular momentum vector for the sphere.
 L = sp.quantities["AngularMomentumVector"]()
@@ -14,5 +14,5 @@
 print "Angular momentum vector: %s" % (L)
 
 # Create an OffAxisSlicePlot on the object with the L vector as its normal
-p = OffAxisProjectionPlot(pf, L, "Density", [0.5,0.5,0.5], (25, "kpc"))
+p = OffAxisProjectionPlot(pf, L, "Density", sp.center, (25, "kpc"))
 p.save()

Repository URL: https://bitbucket.org/yt_analysis/yt-doc/

--

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