new colorscheme (thanks, rageon!)

This commit is contained in:
Timo Paulssen 2008-12-14 13:16:30 +01:00
parent ccfab29fb8
commit b71aecf626

View file

@ -109,11 +109,11 @@ from stats""")
dl = [x for x in dayslist.items() if x[0] <= days]
argl.extend(list(self.unzip(dl)))
self.filledGraph(graph, days, ["#77ffff", "#7777ff"], *argl)
self.filledGraph(graph, days, ["#d53d3d", "#8f2121"], *argl)
cheat = fig.add_subplot(111)
b1 = cheat.bar(0, 0, color = "#77ffff")
b2 = cheat.bar(1, 0, color = "#7777ff")
b1 = cheat.bar(0, 0, color = "#d53d3d")
b2 = cheat.bar(1, 0, color = "#8f2121")
cheat.legend([b1, b2], [
_("Young"),
@ -132,12 +132,12 @@ from stats""")
args = sum((self.unzip(self.stats[type].items(), limit=days, reverseLimit=True) for type in ["dayRepsMature", "dayRepsYoung", "dayRepsNew"][::-1]), [])
self.filledGraph(graph, days, ["#ff7777", "#77ffff", "#7777ff"], *args)
self.filledGraph(graph, days, ["#eca8a8", "#d53d3d", "#8f2121"], *args)
cheat = fig.add_subplot(111)
b1 = cheat.bar(-3, 0, color = "#ff7777")
b2 = cheat.bar(-4, 0, color = "#77ffff")
b3 = cheat.bar(-5, 0, color = "#7777ff")
b1 = cheat.bar(-3, 0, color = "#eca8a8")
b2 = cheat.bar(-4, 0, color = "#d53d3d")
b3 = cheat.bar(-5, 0, color = "#8f2121")
cheat.legend([b1, b2, b3], [
_("New"),
@ -166,7 +166,7 @@ from stats""")
break
x = list(x); x.append(99999)
y.append(count)
self.filledGraph(graph, days, "#ffccff", x, y)
self.filledGraph(graph, days, "#e8a8e9", x, y)
graph.set_xlim(xmin=self.stats['lowestInDay'], xmax=days)
graph.set_ylim(ymax=graph.get_ylim()[1]+10)
return fig
@ -178,7 +178,7 @@ from stats""")
self.addMissing(ints, 0, days)
intervals = self.unzip(ints.items(), limit=days)
graph = fig.add_subplot(111)
self.filledGraph(graph, days, "#aaffaa", *intervals)
self.filledGraph(graph, days, "#ece9a4", *intervals)
graph.set_xlim(xmin=0, xmax=days)
return fig
@ -196,9 +196,9 @@ from stats""")
graph = fig.add_subplot(111)
intervals = self.unzip(days.items())
if attr == 'created':
colour = "#ffaaaa"
colour = "#aeeba7"
else:
colour = "#ffcccc"
colour = "#a6e9ec"
self.filledGraph(graph, numdays, colour, *intervals)
graph.set_xlim(xmin=-numdays, xmax=0)
return fig
@ -262,7 +262,7 @@ from stats""")
arrsize = 16
arr = [0] * arrsize
n = 0
colours = ["#ff7777", "#77ffff", "#7777ff"]
colours = ["#eca8a8", "#d53d3d", "#8f2121"]
bars = []
gs = anki.stats.globalStats(self.deck)
for type in types: