From 23258ad7dace49bc9e1513bc81bfdf7643f68e9a Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 18 May 2011 10:51:22 -0400 Subject: [PATCH] Adding number of submissions into text of hor bars --- survey/makestats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/survey/makestats b/survey/makestats index 4e7ee76..bcd6ad2 100755 --- a/survey/makestats +++ b/survey/makestats @@ -278,7 +278,7 @@ def mkpic_submissions_per_key(db, destdir, key, title, sortby='name', pl.yticks(x + 0.5, ['' for s in stats]) text_offset = pl.gca().get_xlim()[1] / 30. for i, s in enumerate(stats[::-1]): - pl.text(text_offset, i+.5, db.get_nice_name(s[0]), + pl.text(text_offset, i+.5, db.get_nice_name(s[0]) + " [%d]" % (s[1],), horizontalalignment='left', verticalalignment='center', bbox=dict(facecolor='white', alpha=0.8, edgecolor='white')) -- 2.39.2