From: fabrizio.benedetti.82 Date: Mon, 1 Mar 2010 13:50:51 +0000 (+0000) Subject: Corrected some bugs in the scale of graphs. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a6beb8492baa1745cc8157c1a162f94aa9319618;p=hooke.git Corrected some bugs in the scale of graphs. --- diff --git a/libhooke.py b/libhooke.py index 5da0508..9bb1ead 100755 --- a/libhooke.py +++ b/libhooke.py @@ -279,9 +279,9 @@ from the current ticks. oom = numpy.floor(numpy.log10(mrange)) else: if locs[0] > locs[-1]: - val = locs[-1] - else: val = locs[0] + else: + val = locs[-1] if val == 0: oom = 0 else: