|
|
@@ -6,7 +6,7 @@
|
|
|
# - Time vs date plots of emails
|
|
|
# - Recipients domains as a function of time
|
|
|
#
|
|
|
-# Copyright (C) 2015 George C. Privon
|
|
|
+# Copyright 2015-2016 George C. Privon
|
|
|
#
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
@@ -71,7 +71,7 @@ for msg in a:
|
|
|
except ValueError:
|
|
|
print("Skipping message from " + msg['date'])
|
|
|
continue
|
|
|
- dateID = "{0:1d}-{1:2d}".format(z.year, z.month)
|
|
|
+ dateID = r"${0:1d}-{1:02d}$".format(z.year, z.month)
|
|
|
if not(dateID in senders.keys()):
|
|
|
senders[dateID] = np.zeros(len(domains) + 1)
|
|
|
dmatch = False
|
|
|
@@ -95,10 +95,10 @@ for msg in a:
|
|
|
plt.figure()
|
|
|
plt.ylim([0, 24])
|
|
|
plt.yticks(4*np.arange(7))
|
|
|
-plt.ylabel('Hour')
|
|
|
-plt.xlabel('Date')
|
|
|
+plt.ylabel('Hour', fontsize='large')
|
|
|
+plt.xlabel('Date', fontsize='large')
|
|
|
plt.minorticks_on()
|
|
|
-plt.title(args.title + ' - Email Send Times')
|
|
|
+plt.title(args.title + ' - Email Send Times', fontsize='large')
|
|
|
|
|
|
scolor = cubehelix.cmap(startHue=240, endHue=-300,
|
|
|
minSat=1, maxSat=2.5,
|
|
|
@@ -135,10 +135,10 @@ else:
|
|
|
|
|
|
# Email destination domains as a function of month
|
|
|
plt.figure()
|
|
|
-plt.ylabel('Emails sent to Domain')
|
|
|
-plt.xlabel('Year-Month')
|
|
|
+plt.ylabel(r'Emails sent to Domain', fontsize='large')
|
|
|
+plt.xlabel(r'Year$-$Month', fontsize='large')
|
|
|
plt.minorticks_on()
|
|
|
-plt.title(args.title)
|
|
|
+plt.title(args.title, fontsize='large')
|
|
|
|
|
|
months = list(senders.keys())
|
|
|
months.sort()
|