pl.legend(loc='center left')
pl.yticks(x + 0.4, env_names[::-1])
pl.ylim(-0.25, len(envs))
+ pl.xlim(0,1)
pl.title("Operating system preference by environment")
pl.xlabel("Fraction of submissions")
pl.subplots_adjust(left=0.15, right=0.97)
pl.barh(x, stat, left=bottoms, color=time_colors[i],
label=db.get_nice_name(t), height=.6)
bottoms += stat
- pl.legend(loc='center left')
+ pl.legend(loc='upper left')
pl.yticks(x + 0.2, env_names)
pl.ylim(-0.4, len(envs))
pl.title("Research activity time by environment")
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'))