Mercurial > ~darius > hgwebdir.cgi > beermon
comparison logplot.py @ 19:9264a9cacfde
Best isn't, use lower left.
author | darius |
---|---|
date | Tue, 29 Jan 2008 11:42:04 +0000 |
parents | 87d9d862ecc4 |
children |
comparison
equal
deleted
inserted
replaced
18:ff12367786a7 | 19:9264a9cacfde |
---|---|
107 ax.grid(True) | 107 ax.grid(True) |
108 ax.set_xlabel('Date') | 108 ax.set_xlabel('Date') |
109 ax.set_ylabel('Temperature(C)') | 109 ax.set_ylabel('Temperature(C)') |
110 | 110 |
111 # Set the legend | 111 # Set the legend |
112 legend = ax.legend((p[0], p[1], p[2], p[3], p[4]), ('Fermenter', 'Fridge', 'Ambient', 'Target', 'State'), 'best') | 112 legend = ax.legend((p[0], p[1], p[2], p[3], p[4]), ('Fermenter', 'Fridge', 'Ambient', 'Target', 'State'), 'lower left') |
113 | 113 |
114 # Render the figure | 114 # Render the figure |
115 canvas = matplotlib.backends.backend_agg.FigureCanvasAgg(fig) | 115 canvas = matplotlib.backends.backend_agg.FigureCanvasAgg(fig) |
116 canvas.print_figure(outfile, dpi = 96) | 116 canvas.print_figure(outfile, dpi = 96) |
117 now = time.time() | 117 now = time.time() |