[Yt-svn] commit/yt: MatthewTurk: Some quick fixes for the small plotters and log/nonlog fields.

Bitbucket commits-noreply at bitbucket.org
Fri Jun 3 13:29:38 PDT 2011


1 new changeset in yt:

http://bitbucket.org/yt_analysis/yt/changeset/86d573b25781/
changeset:   86d573b25781
branches:    
user:        MatthewTurk
date:        2011-06-03 22:29:29
summary:     Some quick fixes for the small plotters and log/nonlog fields.
affected #:  1 file (14 bytes)

--- a/yt/visualization/profile_plotter.py	Fri Jun 03 15:49:52 2011 -0400
+++ b/yt/visualization/profile_plotter.py	Fri Jun 03 13:29:29 2011 -0700
@@ -277,7 +277,7 @@
         self._current_field = field_z
         self.profile = profile
         self.scale = {True:'log', False:'linear'}.get(
-                data_source.pf.field_info[field_z], "log")
+                data_source.pf.field_info[field_z].take_log, "log")
         self._setup_plot()
 
     def _setup_plot(self):
@@ -404,7 +404,7 @@
         self._current_field = field_y
         self.profile = profile
         self.scale = {True:'log', False:'linear'}.get(
-                data_source.pf.field_info[field_y], "log")
+                data_source.pf.field_info[field_y].take_log, "log")
         self._setup_plot()
 
     def _setup_plot(self):
@@ -421,7 +421,7 @@
             ny = (self.profile[self._current_field] > 0)
             mi = self.profile[self._current_field][ny].min()
         else:
-            mi = self.profile[self._current_field][ny].min()
+            mi = self.profile[self._current_field].min()
         ma = self.profile[self._current_field].max()
         yax.bounds = (mi, ma)
         yax.scale = self.scale

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