Changeset 890 for SHX/trunk


Ignore:
Timestamp:
12/12/12 17:25:33 (8 years ago)
Author:
marcus
Message:
  • fixing borders
File:
1 edited

Legend:

Unmodified
Added
Removed
  • SHX/trunk/SeismicHandler/modules/wx_.py

    r889 r890  
    362362            timepos -= STATION_INFO 
    363363 
    364         t = timepos * (self.relend - self.relstart) / pixel_width + self.relstart 
     364        if self.timewindow[1] is None: 
     365            duration = self.relend - self.relstart 
     366            start = self.relstart 
     367        else: 
     368            duration = self.timewindow[1] - self.timewindow[0] 
     369            start = self.timewindow[0] 
     370 
     371        t = timepos * duration / pixel_width + start 
    365372 
    366373        return t 
     
    908915        self.maxDuration = maxDuration 
    909916        self.maxAmplitude = amplitude 
     917        self.timewindow = get_runtime("timewindow") 
    910918 
    911919    def __zoombox(self, dc, start, end, midpoint, color="DARKORANGE", size=1): 
Note: See TracChangeset for help on using the changeset viewer.