Changeset 140 for trunk/pycha/bar.py

Show
Ignore:
Timestamp:
02/03/09 16:08:23 (3 years ago)
Author:
lgs
Message:

Change the copyright range and make all code pep8 compatible

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pycha/bar.py

    r112 r140  
    1 # Copyright (c) 2007-2008 by Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> 
     1# Copyright(c) 2007-2009 by Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> 
    22# 
    33# This file is part of PyCha. 
     
    1818from pycha.chart import Chart, uniqueIndices 
    1919from pycha.color import hex2rgb 
     20 
    2021 
    2122class BarChart(Chart): 
     
    9697            drawBar(bar) 
    9798        cx.restore() 
     99 
    98100 
    99101class VerticalBarChart(BarChart): 
     
    138140                xval, yval = item 
    139141                y = (((xval - self.minxval) * self.xscale) 
    140                      + self.barMargin  + (i * self.barWidthForSet)) 
     142                     + self.barMargin + (i * self.barWidthForSet)) 
    141143                h = self.barWidthForSet 
    142144                w = abs(yval) * self.yscale 
     
    155157        offset = (self.minxdelta * self.xscale) / 2 
    156158        tmp = self.xticks 
    157         self.xticks = [(1.0 - tick[0], tick[1]) for tick in self.yticks ] 
     159        self.xticks = [(1.0 - tick[0], tick[1]) for tick in self.yticks] 
    158160        self.yticks = [(tick[0] + offset, tick[1]) for tick in tmp] 
    159161 
     
    185187        cx.stroke() 
    186188 
     189 
    187190class Rect(object): 
     191 
    188192    def __init__(self, x, y, w, h, xval, yval, name): 
    189193        self.x, self.y, self.w, self.h = x, y, w, h