# HG changeset patch # User Daniel O'Connor # Date 1513944683 -3600 # Node ID 899bc9c22787cf6c84cb21b79407d78c4710e7cd # Parent 30e7adf283ca0c4286cf19f70ffae07c213746d1 Tweak annotation to be out of the way diff -r 30e7adf283ca -r 899bc9c22787 graph.py --- a/graph.py Fri Dec 22 13:10:23 2017 +0100 +++ b/graph.py Fri Dec 22 13:11:23 2017 +0100 @@ -215,8 +215,8 @@ ax2.legend(loc = 'upper right') if len(annotations) > 0: - ax1.text(0.02, 0.9, reduce(lambda a, b: a + '\n' + b, annotations), - transform = ax1.transAxes, bbox = dict(facecolor = 'red', alpha = 0.5), + ax1.text(0.02, 0.5, reduce(lambda a, b: a + '\n' + b, annotations), + transform = ax1.transAxes, bbox = dict(facecolor = 'blue', alpha = 0.5), ha = 'left', va = 'top') ndays = int(max(1, round((end - start) / 86400))) for ax in fig.get_axes():