Mercurial > ~darius > hgwebdir.cgi > vanlogger
comparison graph.py @ 19:4d97dfb07169
Use the right date for graph names
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Fri, 23 Feb 2018 16:20:04 +1030 |
parents | 57dece5674e3 |
children | d4356465dce1 |
comparison
equal
deleted
inserted
replaced
18:9e538d88816f | 19:4d97dfb07169 |
---|---|
254 fig.subplots_adjust(left = 0.10, right = 0.88, top = 0.95, bottom = 0.15) | 254 fig.subplots_adjust(left = 0.10, right = 0.88, top = 0.95, bottom = 0.15) |
255 if fname == None: | 255 if fname == None: |
256 matplotlib.pyplot.show() | 256 matplotlib.pyplot.show() |
257 else: | 257 else: |
258 canvas = matplotlib.backends.backend_agg.FigureCanvasAgg(fig) # Sets canvas in fig too | 258 canvas = matplotlib.backends.backend_agg.FigureCanvasAgg(fig) # Sets canvas in fig too |
259 fig.savefig(end.strftime(fname)) | 259 fig.savefig(start.astimezone(lt).strftime(fname)) |
260 | 260 |
261 if __name__ == '__main__': | 261 if __name__ == '__main__': |
262 main() | 262 main() |