don't translate graphs, as agg can't cope

This commit is contained in:
Damien Elmes 2009-09-26 05:14:16 +09:00
parent 029390f73b
commit e687b1d033

View file

@ -147,8 +147,8 @@ where type = 1""")
b2 = cheat.bar(1, 0, color = dueMatureC) b2 = cheat.bar(1, 0, color = dueMatureC)
cheat.legend([b1, b2], [ cheat.legend([b1, b2], [
_("Young"), "Young",
_("Mature")], loc='upper right') "Mature"], loc='upper right')
graph.set_xlim(xmin=self.stats['lowestInDay'], xmax=days) graph.set_xlim(xmin=self.stats['lowestInDay'], xmax=days)
return fig return fig
@ -172,9 +172,9 @@ where type = 1""")
b3 = cheat.bar(-5, 0, color = reviewMatureC) b3 = cheat.bar(-5, 0, color = reviewMatureC)
cheat.legend([b1, b2, b3], [ cheat.legend([b1, b2, b3], [
_("New"), "New",
_("Young"), "Young",
_("Mature")], loc='upper left') "Mature"], loc='upper left')
graph.set_xlim(xmin=-days, xmax=0) graph.set_xlim(xmin=-days, xmax=0)
graph.set_ylim(ymax=max(max(a for a in args[1::2])) + 10) graph.set_ylim(ymax=max(max(a for a in args[1::2])) + 10)
@ -330,9 +330,9 @@ where type = 1""")
offset += 5 offset += 5
n += 1 n += 1
x = ([""] + [str(n) for n in range(1, enum)]) * 3 x = ([""] + [str(n) for n in range(1, enum)]) * 3
graph.legend([p[0] for p in bars], (_("New"), graph.legend([p[0] for p in bars], ("New",
_("Young"), "Young",
_("Mature")), "Mature"),
'upper left') 'upper left')
graph.set_ylim(ymax=100) graph.set_ylim(ymax=100)
graph.set_xlim(xmax=15) graph.set_xlim(xmax=15)