[yt-svn] commit/yt: ngoldbaum: Making it possible to specify colorbar ranges for plots with zero dynamic range.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Sun May 18 11:00:24 PDT 2014


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/e36b5500ae24/
Changeset:   e36b5500ae24
Branch:      yt-3.0
User:        ngoldbaum
Date:        2014-05-18 19:57:46
Summary:     Making it possible to specify colorbar ranges for plots with zero dynamic range.
Affected #:  1 file

diff -r 50f7a94cc1c85cf757e1580c7a612652a2330b7c -r e36b5500ae24facd11fa6f62cfa2396e1f322633 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -761,7 +761,7 @@
 
             image = self.frb[f]
 
-            if image.max() == image.min():
+            if image.max() == image.min() and zlim == (None, None):
                 if self._field_transform[f] == log_transform:
                     mylog.warning("Plot image for field %s has zero dynamic "
                                   "range. Min = Max = %d." % (f, image.max()))

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