Changeset 94

Show
Ignore:
Timestamp:
09/12/08 01:21:56 (4 years ago)
Author:
lgs
Message:

Remove whitespace

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/bar.py

    r85 r94  
    4949            self.barMargin = (xdelta * self.xscale 
    5050                              * (1.0 - self.options.barWidthFillFraction) / 2) 
    51          
     51 
    5252        self.minxdelta = xdelta 
    5353        self.bars = [] 
     
    5858        def drawBar(bar): 
    5959            cx.set_line_width(self.options.stroke.width) 
    60              
     60 
    6161            # gather bar proportions 
    6262            x = self.area.w * bar.x + self.area.x 
     
    6464            w = self.area.w * bar.w 
    6565            h = self.area.h * bar.h 
    66              
     66 
    6767            if w < 1 or h < 1: 
    6868                return # don't draw when the bar is too small 
    69              
     69 
    7070            if self.options.stroke.shadow: 
    7171                cx.set_source_rgba(0, 0, 0, 0.15) 
     
    7373                cx.rectangle(*rectangle) 
    7474                cx.fill() 
    75              
     75 
    7676            if self.options.shouldFill: 
    7777                cx.rectangle(x, y, w, h) 
    7878                cx.set_source_rgb(*self.options.colorScheme[bar.name]) 
    7979                cx.fill_preserve() 
    80              
     80 
    8181            if not self.options.stroke.hide: 
    8282                cx.set_source_rgb(*hex2rgb(self.options.stroke.color)) 
    8383                cx.stroke() 
    84          
     84 
    8585        cx.save() 
    8686        for bar in self.bars: 
     
    103103                y = 1.0 - h 
    104104                rect = Rect(x, y, w, h, xval, yval, name) 
    105                  
     105 
    106106                if (0.0 <= rect.x <= 1.0) and (0.0 <= rect.y <= 1.0): 
    107107                    self.bars.append(rect) 
     
    132132                w = (yval - self.minyval) * self.yscale 
    133133                rect = Rect(x, y, w, h, xval, yval, name) 
    134                  
     134 
    135135                if (0.0 <= rect.x <= 1.0) and (0.0 <= rect.y <= 1.0): 
    136136                    self.bars.append(rect)