# HG changeset patch # User Daniel O'Connor # Date 1505114290 -34200 # Node ID 27540ac7879d807e9287e34f569a1543ffdeaee7 # Parent 2e50426c946f55f8351b522a3610e32678fb9950 Set the graph title diff -r 2e50426c946f -r 27540ac7879d agl.py --- a/agl.py Mon Sep 11 16:47:54 2017 +0930 +++ b/agl.py Mon Sep 11 16:48:10 2017 +0930 @@ -237,6 +237,7 @@ ndays = int(max(1, round(((end - start).total_seconds()) / 86400))) for ax in fig.get_axes(): + ax.set_title('%s to %s' % (start.strftime('%Y-%m-%d'), end.strftime('%Y-%m-%d'))) ax.set_xlim([start, end]) ax.format_xdata = lambda d: matplotlib.dates.num2date(d).strftime('%d %b %H:%M') ax.xaxis.grid(True)