Skip to content

Commit

Permalink
Committing Grant's ClusteredBars background color addition.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexras committed Nov 1, 2010
1 parent fb12a7e commit d1013c7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ClusteredBars.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def __init__(self):
self.bars = []
self.spacing = 0
self.width = 1
self.background_color = "white"

def add(self, bar):
if not isinstance(bar, Bar) and not isinstance(bar, StackedBars):
Expand All @@ -41,9 +42,12 @@ def draw(self, axis, transform=None):
print >>sys.stderr, "Labels: %s" % (self.xTickLabels)
print >>sys.stderr, "Points: %s" % (self.xTickLabelPoints)
sys.exit(1)

super(ClusteredBars,self).draw(axis)


rect = axis.patch
rect.set_facecolor(self.background_color)

return self._draw(axis, transform)


Expand Down

0 comments on commit d1013c7

Please sign in to comment.