mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
revised colorscheme (thanks again, rageon)
This commit is contained in:
parent
b71aecf626
commit
61600f58ed
1 changed files with 12 additions and 12 deletions
|
|
@ -109,11 +109,11 @@ from stats""")
|
||||||
dl = [x for x in dayslist.items() if x[0] <= days]
|
dl = [x for x in dayslist.items() if x[0] <= days]
|
||||||
argl.extend(list(self.unzip(dl)))
|
argl.extend(list(self.unzip(dl)))
|
||||||
|
|
||||||
self.filledGraph(graph, days, ["#d53d3d", "#8f2121"], *argl)
|
self.filledGraph(graph, days, ["#d33d3e", "#a43635"], *argl)
|
||||||
|
|
||||||
cheat = fig.add_subplot(111)
|
cheat = fig.add_subplot(111)
|
||||||
b1 = cheat.bar(0, 0, color = "#d53d3d")
|
b1 = cheat.bar(0, 0, color = "#d33d3e")
|
||||||
b2 = cheat.bar(1, 0, color = "#8f2121")
|
b2 = cheat.bar(1, 0, color = "#a43635")
|
||||||
|
|
||||||
cheat.legend([b1, b2], [
|
cheat.legend([b1, b2], [
|
||||||
_("Young"),
|
_("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]), [])
|
args = sum((self.unzip(self.stats[type].items(), limit=days, reverseLimit=True) for type in ["dayRepsMature", "dayRepsYoung", "dayRepsNew"][::-1]), [])
|
||||||
|
|
||||||
self.filledGraph(graph, days, ["#eca8a8", "#d53d3d", "#8f2121"], *args)
|
self.filledGraph(graph, days, ["#afeca6", "#4cd33d", "#3c9731"], *args)
|
||||||
|
|
||||||
cheat = fig.add_subplot(111)
|
cheat = fig.add_subplot(111)
|
||||||
b1 = cheat.bar(-3, 0, color = "#eca8a8")
|
b1 = cheat.bar(-3, 0, color = "#afeca6")
|
||||||
b2 = cheat.bar(-4, 0, color = "#d53d3d")
|
b2 = cheat.bar(-4, 0, color = "#4cd33d")
|
||||||
b3 = cheat.bar(-5, 0, color = "#8f2121")
|
b3 = cheat.bar(-5, 0, color = "#3c9731")
|
||||||
|
|
||||||
cheat.legend([b1, b2, b3], [
|
cheat.legend([b1, b2, b3], [
|
||||||
_("New"),
|
_("New"),
|
||||||
|
|
@ -166,7 +166,7 @@ from stats""")
|
||||||
break
|
break
|
||||||
x = list(x); x.append(99999)
|
x = list(x); x.append(99999)
|
||||||
y.append(count)
|
y.append(count)
|
||||||
self.filledGraph(graph, days, "#e8a8e9", x, y)
|
self.filledGraph(graph, days, "#eed0a2", x, y)
|
||||||
graph.set_xlim(xmin=self.stats['lowestInDay'], xmax=days)
|
graph.set_xlim(xmin=self.stats['lowestInDay'], xmax=days)
|
||||||
graph.set_ylim(ymax=graph.get_ylim()[1]+10)
|
graph.set_ylim(ymax=graph.get_ylim()[1]+10)
|
||||||
return fig
|
return fig
|
||||||
|
|
@ -178,7 +178,7 @@ from stats""")
|
||||||
self.addMissing(ints, 0, days)
|
self.addMissing(ints, 0, days)
|
||||||
intervals = self.unzip(ints.items(), limit=days)
|
intervals = self.unzip(ints.items(), limit=days)
|
||||||
graph = fig.add_subplot(111)
|
graph = fig.add_subplot(111)
|
||||||
self.filledGraph(graph, days, "#ece9a4", *intervals)
|
self.filledGraph(graph, days, "#ece9a6", *intervals)
|
||||||
graph.set_xlim(xmin=0, xmax=days)
|
graph.set_xlim(xmin=0, xmax=days)
|
||||||
return fig
|
return fig
|
||||||
|
|
||||||
|
|
@ -196,9 +196,9 @@ from stats""")
|
||||||
graph = fig.add_subplot(111)
|
graph = fig.add_subplot(111)
|
||||||
intervals = self.unzip(days.items())
|
intervals = self.unzip(days.items())
|
||||||
if attr == 'created':
|
if attr == 'created':
|
||||||
colour = "#aeeba7"
|
colour = "#a6e9eb"
|
||||||
else:
|
else:
|
||||||
colour = "#a6e9ec"
|
colour = "#e8a7e9"
|
||||||
self.filledGraph(graph, numdays, colour, *intervals)
|
self.filledGraph(graph, numdays, colour, *intervals)
|
||||||
graph.set_xlim(xmin=-numdays, xmax=0)
|
graph.set_xlim(xmin=-numdays, xmax=0)
|
||||||
return fig
|
return fig
|
||||||
|
|
@ -262,7 +262,7 @@ from stats""")
|
||||||
arrsize = 16
|
arrsize = 16
|
||||||
arr = [0] * arrsize
|
arr = [0] * arrsize
|
||||||
n = 0
|
n = 0
|
||||||
colours = ["#eca8a8", "#d53d3d", "#8f2121"]
|
colours = ["#a7afeb", "#3d4fd4", "#313f97"]
|
||||||
bars = []
|
bars = []
|
||||||
gs = anki.stats.globalStats(self.deck)
|
gs = anki.stats.globalStats(self.deck)
|
||||||
for type in types:
|
for type in types:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue