mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
added a good-looking legend to the due cards graph.
i feel dirty now.
This commit is contained in:
parent
3a1f6a9274
commit
7b2abd7153
1 changed files with 7 additions and 0 deletions
|
@ -101,6 +101,13 @@ from cards where reps > 0 and priority != 0 and type = 1 and interval > 21""")
|
|||
|
||||
self.filledGraph(graph, days, ["#7777ff", "#77ffff", "#ff7777"], *argl)
|
||||
|
||||
cheat = fig.add_subplot(111)
|
||||
cheat.bar(0, 0, color = "#ff7777", label = _("New cards"))
|
||||
cheat.bar(1, 0, color = "#77ffff", label = _("Young cards"))
|
||||
cheat.bar(2, 0, color = "#7777ff", label = _("Mature cards"))
|
||||
|
||||
cheat.legend(loc = 'upper right')
|
||||
|
||||
graph.set_ylabel(_("Cards"))
|
||||
graph.set_xlabel(_("Days"))
|
||||
graph.set_xlim(xmin=self.stats['lowestInDay'], xmax=days)
|
||||
|
|
Loading…
Reference in a new issue