mirror of
https://github.com/ankitects/anki.git
synced 2025-11-12 07:37:11 -05:00
strip elements out of range in review time graph
This commit is contained in:
parent
8378f71c73
commit
04ba9c9a4e
1 changed files with 2 additions and 1 deletions
|
|
@ -189,7 +189,8 @@ where type = 1""")
|
||||||
fig = Figure(figsize=(self.width, self.height), dpi=self.dpi)
|
fig = Figure(figsize=(self.width, self.height), dpi=self.dpi)
|
||||||
times = self.stats['dayTimes']
|
times = self.stats['dayTimes']
|
||||||
self.addMissing(times, -days, 0)
|
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)
|
graph = fig.add_subplot(111)
|
||||||
self.filledGraph(graph, days, reviewTimeC, *times)
|
self.filledGraph(graph, days, reviewTimeC, *times)
|
||||||
graph.set_xlim(xmin=-days, xmax=0)
|
graph.set_xlim(xmin=-days, xmax=0)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue