From e687b1d033c8f76f9e5e40ca98133e530c3baeaf Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 26 Sep 2009 05:14:16 +0900 Subject: [PATCH] don't translate graphs, as agg can't cope --- anki/graphs.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/anki/graphs.py b/anki/graphs.py index 78b603cc8..cae0e7166 100644 --- a/anki/graphs.py +++ b/anki/graphs.py @@ -147,8 +147,8 @@ where type = 1""") b2 = cheat.bar(1, 0, color = dueMatureC) cheat.legend([b1, b2], [ - _("Young"), - _("Mature")], loc='upper right') + "Young", + "Mature"], loc='upper right') graph.set_xlim(xmin=self.stats['lowestInDay'], xmax=days) return fig @@ -172,9 +172,9 @@ where type = 1""") b3 = cheat.bar(-5, 0, color = reviewMatureC) cheat.legend([b1, b2, b3], [ - _("New"), - _("Young"), - _("Mature")], loc='upper left') + "New", + "Young", + "Mature"], loc='upper left') graph.set_xlim(xmin=-days, xmax=0) graph.set_ylim(ymax=max(max(a for a in args[1::2])) + 10) @@ -330,9 +330,9 @@ where type = 1""") offset += 5 n += 1 x = ([""] + [str(n) for n in range(1, enum)]) * 3 - graph.legend([p[0] for p in bars], (_("New"), - _("Young"), - _("Mature")), + graph.legend([p[0] for p in bars], ("New", + "Young", + "Mature"), 'upper left') graph.set_ylim(ymax=100) graph.set_xlim(xmax=15)