Index: trunk/tools/wsor/editor_lifecycle/normplot.py |
— | — | @@ -46,6 +46,7 @@ |
47 | 47 | M = len(markers) |
48 | 48 | C = len(colors) |
49 | 49 | labeltempl = r'$10^{%d} \leq a < 10^{%d}$' |
| 50 | +labeltempl = '%d-%d edits/month' |
50 | 51 | |
51 | 52 | if __name__ == '__main__': |
52 | 53 | ns = parser.parse_args() |
— | — | @@ -68,13 +69,14 @@ |
69 | 70 | idx = np.argsort(cohort) |
70 | 71 | cohort = cohort[idx] |
71 | 72 | peak = peak[idx] / peak.mean() |
| 73 | + labeldata = (10 ** (a - 1) * 86400.0 * 30, 10 ** a * 86400.0 * 30) |
72 | 74 | l, = ax.plot(cohort, peak, marker=markers[i % M], color=colors[i % C], |
73 | | - ls='none', mec=colors[i % C], label=labeltempl % (a-1, a), ms=8, |
| 75 | + ls='none', mec=colors[i % C], label=labeltempl % labeldata, ms=8, |
74 | 76 | alpha=.65) |
75 | 77 | lines.append(l) |
76 | 78 | |
77 | 79 | pp.figlegend(lines, [ l.get_label() for l in lines ], |
78 | | - loc='center right', prop=FontProperties(size='medium')) |
| 80 | + loc='center right', prop=FontProperties(size='small')) |
79 | 81 | |
80 | 82 | if ns.xlim: |
81 | 83 | pp.xlim(datetime(ns.xlim[0],1,1), datetime(ns.xlim[1],1,1)) |