From 7205ac78d372bae02dca3b4470e20b1ef55b4438 Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Fri, 11 Jun 2010 21:09:04 +0100 Subject: [PATCH] change legend position in graph, 'best' seems to use top right for me sometimes when upper left seems the obvious place to put it --- pyfpdb/GuiGraphViewer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfpdb/GuiGraphViewer.py b/pyfpdb/GuiGraphViewer.py index eb1793d3..add48696 100644 --- a/pyfpdb/GuiGraphViewer.py +++ b/pyfpdb/GuiGraphViewer.py @@ -228,9 +228,9 @@ class GuiGraphViewer (threading.Thread): self.ax.plot(blue, color='blue', label='Showdown: $%.2f' %(blue[-1])) self.ax.plot(red, color='red', label='Non-showdown: $%.2f' %(red[-1])) if sys.version[0:3] == '2.5': - self.ax.legend(loc='best', shadow=True, prop=FontProperties(size='smaller')) + self.ax.legend(loc='upper left', shadow=True, prop=FontProperties(size='smaller')) else: - self.ax.legend(loc='best', fancybox=True, shadow=True, prop=FontProperties(size='smaller')) + self.ax.legend(loc='upper left', fancybox=True, shadow=True, prop=FontProperties(size='smaller')) self.graphBox.add(self.canvas) self.canvas.show()