Browse Source

peg y axis bottom to 0, add additional domains for classification

George C. Privon 8 years ago
parent
commit
f840c699c5
1 changed files with 5 additions and 1 deletions
  1. 5 1
      email_stats.py

+ 5 - 1
email_stats.py

@@ -53,7 +53,10 @@ pldata['unknown'] = []
 
 domains = ['gmail',
            'hotmail',
-           'aol']
+           'aol',
+           'comcast',
+           'yahoo',
+           'privon']
 senders = {}
 
 a = mailbox.mbox(args.mbox)
@@ -159,6 +162,7 @@ plt.legend(frameon=False, loc='best')
 plt.xticks(np.arange(len(months)), months, rotation=90)
 plt.setp(plt.axes().get_xticklabels(), visible=False)
 plt.setp(plt.axes().get_xticklabels()[::6], visible=True)
+plt.ylim(bottom=0)
 
 if args.plotroot:
     plt.savefig(args.plotroot + '-destinations.png', bbox_inches='tight')