diff options
author | Walter Bender <walter@sugarlabs.org> | 2013-05-11 17:24:31 (GMT) |
---|---|---|
committer | Agustin Zubiaga <aguz@sugarlabs.org> | 2013-06-03 19:51:00 (GMT) |
commit | 7f6528fc444e60be9d6bc5fa7162e11fe07828f2 (patch) | |
tree | 7c049e079561db947eec92bd063a2a89ab8efc6c /sugarpycha/chart.py | |
parent | d7f74a5b8329b45fa60786e51c375559990de8f5 (diff) |
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 <aguz@sugarlabs.org>
Diffstat (limited to 'sugarpycha/chart.py')
-rw-r--r-- | sugarpycha/chart.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): |