瀏覽代碼

Fix bottom kwarg for p3.

tags/v0.1^2
Ben Kurtovic 13 年之前
父節點
當前提交
bb6e8f1063
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      bot/tasks/afc_history.py

+ 2
- 1
bot/tasks/afc_history.py 查看文件

@@ -171,6 +171,7 @@ class Task(BaseTask):
pends = [d[STATUS_PEND] for d in data.itervalues()]
declines = [d[STATUS_DECLINE] for d in data.itervalues()]
accepts = [d[STATUS_ACCEPT] for d in data.itervalues()]
pends_declines = [p + d for p, d in zip(pends, declines)]
ind = arange(len(data))
xsize = self.graph.get("xsize", 1200)
ysize = self.graph.get("xsize", 900)
@@ -182,7 +183,7 @@ class Task(BaseTask):

p1 = plt.bar(ind, pends, width, color=pcolor)
p2 = plt.bar(ind, declines, width, color=dcolor, bottom=pends)
p3 = plt.bar(ind, accepts, width, color=acolor, bottom=pends+declines)
p3 = plt.bar(ind, accepts, width, color=acolor, bottom=pends_declines)

plt.title("AfC submissions per date")
plt.ylabel("Submissions")


Loading…
取消
儲存