[Yt-svn] commit/yt: John Wise: Make sure that the limits are positive if we're taking the log.
Bitbucket
commits-noreply at bitbucket.org
Tue Sep 27 12:02:09 PDT 2011
1 new changeset in yt:
http://bitbucket.org/yt_analysis/yt/changeset/085da8df6d58/
changeset: 085da8df6d58
branch: yt
user: John Wise
date: 2011-09-27 19:30:56
summary: Make sure that the limits are positive if we're taking the log.
affected #: 1 file (-1 bytes)
--- a/yt/visualization/plot_window.py Tue Sep 27 12:02:30 2011 -0400
+++ b/yt/visualization/plot_window.py Tue Sep 27 13:30:56 2011 -0400
@@ -355,7 +355,7 @@
def get_ticks(self, mi, ma, height = 400, take_log = False):
# This will eventually change to work with non-logged fields
ticks = []
- if take_log:
+ if take_log and mi > 0.0 and ma > 0.0:
ll = LogLocator()
tick_locs = ll(mi, ma)
mi = na.log10(mi)
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