From 7f6528fc444e60be9d6bc5fa7162e11fe07828f2 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sat, 11 May 2013 17:24:31 +0000 Subject: UI tweaks * Reconfure toolbars in portrait mode * Tweek axes label positions to prevent overlap * More robust testing of entry values Signed-off-by: Agustin Zubiaga --- (limited to 'sugarpycha') diff --git a/sugarpycha/chart.py b/sugarpycha/chart.py index 2ce6e05..828b9e8 100644 --- a/sugarpycha/chart.py +++ b/sugarpycha/chart.py @@ -461,7 +461,7 @@ class Chart(object): def _renderYAxisLabel(self, cx, label_text): label = safe_unicode(label_text, self.options.encoding) - x = self.layout.y_label.x + x = self.layout.y_label.x - 10 # tweak to prevent collisions y = self.layout.y_label.y + self.layout.y_label.h / 2.0 self._renderAxisLabel(cx, label, x, y, True) @@ -477,7 +477,7 @@ class Chart(object): def _renderXAxisLabel(self, cx, label_text): label = safe_unicode(label_text, self.options.encoding) x = self.layout.x_label.x + self.layout.x_label.w / 2.0 - y = self.layout.x_label.y + y = self.layout.x_label.y + 5 # tweak to prevent collisions self._renderAxisLabel(cx, label, x, y, False) def _renderXAxis(self, cx): -- cgit v0.9.1