Mercurial > ~darius > hgwebdir.cgi > vanlogger
changeset 9:899bc9c22787
Tweak annotation to be out of the way
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Fri, 22 Dec 2017 13:11:23 +0100 |
parents | 30e7adf283ca |
children | 3f5b617b4715 |
files | graph.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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():