From dba04598ae9663991844056a16a68b29a1b401ba Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 31 Mar 2011 13:54:29 +0900 Subject: [PATCH] pad ivl graph --- anki/stats.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/anki/stats.py b/anki/stats.py index 02140c9a9..e071a33dd 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -317,11 +317,7 @@ group by day order by day""" % lim, def _daysStudied(self): lims = [] - num = None - if self.type == 0: - num = 30 - elif self.type == 1: - num = 7*52 + num = self._periodDays() if num: lims.append( "time > %d" % @@ -359,6 +355,7 @@ group by day order by day)""" % lim, dict(data=totd, color=colCum, label=_("% Total"), yaxis=2, bars={'show': False}, lines=dict(show=True), stack=False) ], conf=dict( + xaxis=dict(min=-0.5, max=ivls[-1][0]+0.5), yaxes=[dict(), dict(position="right", max=105)])) i = [] self._line(i, _("Average interval"), fmtTimeSpan(avg*86400))