[yt-svn] commit/yt: ngoldbaum: Merged in bwoshea/yt-3-bwo (pull request #1165)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Aug 26 10:00:51 PDT 2014


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/6dd1a9ee0419/
Changeset:   6dd1a9ee0419
Branch:      yt
User:        ngoldbaum
Date:        2014-08-26 19:00:42
Summary:     Merged in bwoshea/yt-3-bwo (pull request #1165)

Update to annotate_grids to overlay girds in a predictable order
Affected #:  1 file

diff -r ba24b263607d3dcf750cdc974f99151480325bfa -r 6dd1a9ee0419927d3bebfa0f8bdb9c2816fd95d7 yt/visualization/plot_modifications.py
--- a/yt/visualization/plot_modifications.py
+++ b/yt/visualization/plot_modifications.py
@@ -432,6 +432,12 @@
         min_level = self.min_level or 0
         max_level = self.max_level or levels.max()
 
+        # sorts the three arrays in order of ascending level - this makes images look nicer
+        new_indices = np.argsort(levels)
+        levels = levels[new_indices]
+        GLE = GLE[new_indices]
+        GRE = GRE[new_indices]
+        
         for px_off, py_off in zip(pxs.ravel(), pys.ravel()):
             pxo = px_off * DW[px_index]
             pyo = py_off * DW[py_index]

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