[hamster-applet/2_28_no_bars] no factors
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hamster-applet/2_28_no_bars] no factors
- Date: Tue, 10 Nov 2009 20:31:40 +0000 (UTC)
commit 4d95d7b291980c0bae358eac8562ca62db462e23
Author: Toms Bauģis <toms baugis gmail com>
Date: Tue Nov 10 20:28:57 2009 +0000
no factors
hamster/charting.py | 25 +++++++++++--------------
1 files changed, 11 insertions(+), 14 deletions(-)
---
diff --git a/hamster/charting.py b/hamster/charting.py
index e15ac41..eacde2c 100644
--- a/hamster/charting.py
+++ b/hamster/charting.py
@@ -334,21 +334,18 @@ class BarChart(Chart):
if self.stack_keys:
for j in range(len(self.integrators[i])):
- factor = self.integrators[i][j].value
-
- if factor > 0:
- bar_size = max_bar_size * factor
- bar_start += bar_size
-
- self.draw_bar(bar_x,
- self.graph_height - bar_start,
- bar_width - (gap * 2),
- bar_size,
- self.get_bar_color(j))
- context.stroke()
+ bar_size = max_bar_size * 1
+ bar_start += bar_size
+
+ self.draw_bar(bar_x,
+ self.graph_height - bar_start,
+ bar_width - (gap * 2),
+ bar_size,
+ self.get_bar_color(j))
+ context.stroke()
else:
- factor = self.integrators[i].value
- bar_size = max_bar_size * factor
+ #factor = self.integrators[i].value
+ bar_size = 15
bar_start = bar_size
self.draw_bar(bar_x,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]