GRAPH: Put legend in "best" position, not fixed in top left.

This commit is contained in:
gimick 2010-08-08 22:48:08 +01:00
parent 6ac8f410f6
commit 2d8f9dcc78

View File

@ -232,7 +232,7 @@ class GuiGraphViewer (threading.Thread):
if sys.version[0:3] == '2.5': if sys.version[0:3] == '2.5':
self.ax.legend(loc='upper left', shadow=True, prop=FontProperties(size='smaller')) self.ax.legend(loc='upper left', shadow=True, prop=FontProperties(size='smaller'))
else: else:
self.ax.legend(loc='upper left', fancybox=True, shadow=True, prop=FontProperties(size='smaller')) self.ax.legend(loc='best', fancybox=True, shadow=True, prop=FontProperties(size='smaller'))
self.graphBox.add(self.canvas) self.graphBox.add(self.canvas)
self.canvas.show() self.canvas.show()