@@ -55,11 +55,17 class Figure: | |||
|
55 | 55 | |
|
56 | 56 | def getTimeLim(self, x, xmin, xmax): |
|
57 | 57 | |
|
58 | if self.timerange != None: | |
|
59 | txmin = x[0] - x[0]%self.timerange | |
|
60 | else: | |
|
61 | txmin = numpy.min(x) | |
|
62 | ||
|
58 | 63 | thisdatetime = datetime.datetime.utcfromtimestamp(numpy.min(x)) |
|
59 | 64 | thisdate = datetime.datetime.combine(thisdatetime.date(), datetime.time(0,0,0)) |
|
60 | 65 | |
|
61 | 66 | #################################################### |
|
62 | 67 | #If the x is out of xrange |
|
68 | if xmax != None: | |
|
63 | 69 | if xmax < (thisdatetime - thisdate).seconds/(60*60.): |
|
64 | 70 | xmin = None |
|
65 | 71 | xmax = None |
General Comments 0
You need to be logged in to leave comments.
Login now