strip elements out of range in review time graph

This commit is contained in:
Damien Elmes 2010-02-01 07:16:40 +09:00
parent 8378f71c73
commit 04ba9c9a4e

View file

@ -189,7 +189,8 @@ where type = 1""")
fig = Figure(figsize=(self.width, self.height), dpi=self.dpi)
times = self.stats['dayTimes']
self.addMissing(times, -days, 0)
times = self.unzip(times.items())
times = self.unzip([(day,y) for (day,y) in times.items()
if day + days >= 0])
graph = fig.add_subplot(111)
self.filledGraph(graph, days, reviewTimeC, *times)
graph.set_xlim(xmin=-days, xmax=0)