[yt-svn] commit/yt: 2 new changesets

Bitbucket commits-noreply at bitbucket.org
Wed Jul 11 22:55:04 PDT 2012


2 new commits in yt:


https://bitbucket.org/yt_analysis/yt/changeset/be484df51867/
changeset:   be484df51867
branch:      yt
user:        jzuhone
date:        2012-07-12 07:06:43
summary:     If a dataset's domain has physical extents less than 0 in one or more directions, the current setup for plotting quivers will only plot arrows in the sector where x > 0. and y > 0. FLASH data in particular has no restriction on the values of the domain left and right edges. This change should allow more flexibility in quiver plots, but it should be tested on other datasets (particularly Enzo data) to make sure it doesn't break anything.
affected #:  1 file

diff -r 057bb8b6cda1902892411f3831580dff7c1e5092 -r be484df5186781576f1b8c1344f33e26ee41a702 yt/visualization/plot_modifications.py
--- a/yt/visualization/plot_modifications.py
+++ b/yt/visualization/plot_modifications.py
@@ -163,8 +163,8 @@
                              plot.data[self.field_y] - self.bv_y,
                              int(nx), int(ny),
                            (x0, x1, y0, y1),).transpose()
-        X = na.mgrid[0:plot.image._A.shape[0]-1:ny*1j]# + 0.5*factor
-        Y = na.mgrid[0:plot.image._A.shape[1]-1:nx*1j]# + 0.5*factor
+        X,Y = na.meshgrid(na.linspace(xx0,xx1,nx,endpoint=True),
+                          na.linspace(yy0,yy1,ny,endpoint=True))
         if self.normalize:
             nn = na.sqrt(pixX**2 + pixY**2)
             pixX /= nn



https://bitbucket.org/yt_analysis/yt/changeset/ca57cc2a1dc9/
changeset:   ca57cc2a1dc9
branch:      yt
user:        ngoldbaum
date:        2012-07-12 07:55:03
summary:     Merged in jzuhone/yt (pull request #199)
affected #:  1 file

diff -r 2df4bc2c8e640b0b31c94a8573e66dd8908af784 -r ca57cc2a1dc983779bd1f2bbf92fae9004d5bd1e yt/visualization/plot_modifications.py
--- a/yt/visualization/plot_modifications.py
+++ b/yt/visualization/plot_modifications.py
@@ -163,8 +163,8 @@
                              plot.data[self.field_y] - self.bv_y,
                              int(nx), int(ny),
                            (x0, x1, y0, y1),).transpose()
-        X = na.mgrid[0:plot.image._A.shape[0]-1:ny*1j]# + 0.5*factor
-        Y = na.mgrid[0:plot.image._A.shape[1]-1:nx*1j]# + 0.5*factor
+        X,Y = na.meshgrid(na.linspace(xx0,xx1,nx,endpoint=True),
+                          na.linspace(yy0,yy1,ny,endpoint=True))
         if self.normalize:
             nn = na.sqrt(pixX**2 + pixY**2)
             pixX /= nn

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