[hamster-applet] use the right bar depending if stack labels go at beginning or end
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hamster-applet] use the right bar depending if stack labels go at beginning or end
- Date: Sun, 27 Dec 2009 21:17:06 +0000 (UTC)
commit 6a9262259a36f31428ac932708fe0f5e7e29bd0f
Author: Toms Bauģis <toms baugis gmail com>
Date: Sun Dec 27 16:31:25 2009 +0000
use the right bar depending if stack labels go at beginning or end
hamster/charting.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/hamster/charting.py b/hamster/charting.py
index 2345fcc..5eed151 100644
--- a/hamster/charting.py
+++ b/hamster/charting.py
@@ -411,9 +411,9 @@ class BarChart(Chart):
# if labels are at end, then we need show them for the last bar!
if self.labels_at_end:
- factors = self.bars[0]
- else:
factors = self.bars[-1]
+ else:
+ factors = self.bars[0]
if isinstance(factors, Bar):
factors = [factors]
@@ -763,7 +763,6 @@ class BasicWindow:
def on_color_set(self, button, stack_idx):
self.stack_colors[stack_idx] = button.get_color().to_string()
- print self.stack_colors[stack_idx], stack_idx
self.plot()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]