Parcourir la source

note number of individual email-domain combinations

George C. Privon il y a 8 ans
Parent
commit
e61ff2470e
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      email_stats.py

+ 6 - 0
email_stats.py

@@ -167,6 +167,12 @@ plt.plot(np.arange(len(months)),
          alpha=0.4,
          label='All Emails')
 
+plt.annotate('N={0:1.0f}'.format(np.sum(total)),
+             (0.99, 0.99),
+             ha='right',
+             va='top',
+             xycoords='axes fraction')
+
 plt.legend(frameon=False, loc='best')
 plt.xticks(np.arange(len(months)), months, rotation=90)
 plt.setp(plt.axes().get_xticklabels(), visible=False)